The Mojo Dojo
1. Install LLVM
sudo apt install llvm
echo 'export LLVM_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer' >> ~/.bashrc
2. Find libpython path for your env
Assuming env located at ~/miniconda3
python3 -c 'import pathlib; sorted({print(x) for x in (pathlib.Path.home() / "miniconda3/envs").rglob("lib/*") if "libpython" in x.name})'
3. Export env
Replace <full_path_to_libpython.so> with your env's libpython path
echo 'export MOJO_PYTHON_LIBRARY="<full_path_to_libpython.so>"' >> ~/.bashrc
source ~/.bashrc
4. Install Modular CLI / Mojo
Replace <your key> with key provided at developer.modular.com/download
curl https://get.modular.com | MODULAR_AUTH=<your key> sh -
modular install mojo
echo 'export MODULAR_HOME="$HOME/.modular"' >> ~/.bashrc
echo 'export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
5. Activate env and run
from python import Python as py
fn main() raises:
let np = py.import_module("numpy")
print(np.random.randn(3,7))
Metadata
Release files for mojodojo 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mojodojo-0.0.3.tar.gz | 7.4 kB | Without provenance | Details for mojodojo-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mojodojo-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mojodojo-0.0.3-py3-none-any.whl |
Total release size: 15.1 kB
Release files / mojodojo-0.0.3.tar.gz
| Download URL | mojodojo-0.0.3.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95b0a0724f1d4e1652dffca2a5e93aeb07a4a59a7cd0ed7633bb0afe44c7befb
|
|
BLAKE2b-256 checksum How to use checksums |
df855fa1b94233f7b82781f95b5881b24eb87a176b6bcb9c16f332e15820644a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / mojodojo-0.0.3-py3-none-any.whl
| Download URL | mojodojo-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea21049bd1a0060dbcb3562b8e45f002152e40ba6064ba332ee264e084d11f71
|
|
BLAKE2b-256 checksum How to use checksums |
6b1b04cb8a38b0a90c63f4d8960c6564bd024a601b888ab43abb53347d97b782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for mojodojo 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.