-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maturin build doesn't include the entry_points in setup.py? #623
Comments
And the reason why I use BTW, happen to find this while searching for solutions: https://www.python.org/dev/peps/pep-0660/ |
maturin only works with PEP 517 so it doesn't read setup.py. |
Ok. Looks like pypa/pip#8212 will be finished soon. And I've tried using Either of them working will get my problem solved. |
Also I tried this popular shim, from https://stackoverflow.com/questions/62983756/what-is-pyproject-toml-file-for: #!/usr/bin/env python
import setuptools
if __name__ == "__main__":
setuptools.setup() Then
|
Add |
Thanks. I can |
maturin will never support reading metadata from |
BTW, it would be great if you want to work #213 |
Wish I could contribute, but after reading the source code for a while, I conclude that maybe it's beyond my capacity. I guess python packaging stuff is just too complicated for me to make full sense of it. |
Basically we need to generate a script based on this template https://github.com/pypa/pip/blob/0de0b8dd9f21642dc6d0e00bfa8913f4964b1706/src/pip/_vendor/distlib/scripts.py#L41-L48 and put it in virtualenv's bin directory. bin directory path can be obtained by calling |
Works like a charm. Appreciate it. This is my daily python driver now. |
python -V
):Python 3.8.10
pip -V
):pip 21.2.4 from /home/coder/miniconda/lib/python3.8/site-packages/pip (python 3.8)
pyo3
,rust-cpython
orcffi
):pyo3
cargo build
work?Yes.
So here is my project structure:
And my
setup.py
:When install using
maturin develop --release && pip install -e .
, everything works fine with my cli. While when install usingmaturin build --release && pip install target/wheels/myproject-0.1.0-cp38-cp38-linux_x86_64.whl
, my cli does not work, and runningmycli
in terminal givessh: mycli: command not found
.The text was updated successfully, but these errors were encountered: