You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Run `poetry install`. This command automatically compiles the project and installs the project as well as all Python dependencies to the poetry virtualenv.
60
+
2. Run `poetry run pip install --verbose python/pminit ./`. This command automatically compiles the project and installs the project as well as dependencies into the poetry virtualenv.
60
61
61
62
## Running tests
62
63
1. Compile the project
63
-
2. From the root directory, run `poetry run pytest ./tests/python`
64
+
2. Install development dependencies: `poetry install --no-root --only=dev`
65
+
3. From the root directory, run `poetry run pytest ./tests/python`
64
66
65
67
## Using the library
66
68
67
-
See also: examples/
68
-
69
-
### Method 1
70
-
After compiling the project in the `build/src` folder you will find a `.so` file named `pythonmonkey.so`. This is the shared object file that contains the pythonmonkey module.
71
-
72
69
### Install from [PyPI](https://pypi.org/project/pythonmonkey/)
73
70
74
71
> PythonMonkey is not release-ready yet. Our first public release is scheduled for mid-June 2023.
@@ -101,10 +98,19 @@ Type "help", "copyright", "credits" or "license" for more information.
101
98
102
99
Alternatively, you can build a `wheel` package by running `poetry build --format=wheel`, and install it by `pip install dist/*.whl`.
A basic JavaScript shell, `pmjs`, ships with PythonMonkey.
111
+
106
112
## CommonJS (require)
107
-
If you are having trouble with the CommonJS require function, setDEBUG='ctx-module*'and you can see the filenames it tries to laod
113
+
If you are having trouble with the CommonJS require function, setenvironment variable DEBUG='ctx-module*'and you can see the filenames it tries to laod.
108
114
109
115
### Extra Symbols
110
116
Loading the CommonJS subsystem declares some extra symbols which may be helpful in debugging -
0 commit comments