-
Notifications
You must be signed in to change notification settings - Fork 206
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
Cython dependency not installed before executing setup.py when installing with PyPI #463
Comments
|
Okay, admittedly I don't know much about creating pip packages. Looking back more closely at the terminal output I got when installing it, it seems like it's actually included, just not installed before trying to execute the setup.py:
Output from when it installed successfully afterwards after installing Cython manually for reference:
Apparently the issue is that pip/setuptools does not install all of the dependencies before calling the |
Looks like the pyproject.toml is missing from the .tar.gz on pypi. I guess the solution might be to add it to the manifest file. |
Oh, I see now. It looks like the pyproject.toml was added since the last release. The whole purpose of PEP 517 was to address this situation with build-time requirements. My hope is that it should be fixed with the next release. |
Is this already fixed?
|
It's fixed in master by 3b60128, but it hasn't been released on pypi yet. |
@superbock Hi, thanks for building an awesome package. I've been using madmom in my MIR research happily. And now I'm building a music structure analysis package and trying to publish it. The package depends on madmom and due to this build-time dependency issue, it can only be installed as:
but I hope it can be simply Because of the policy of PyPI, I can't publish a package with a direct dependency such as:
Could you please publish |
+1 for @tae-jun's request. 😁 Thanks for a great package @superbock! Having some trouble with this in not just |
Just updating that this is still present as of April 2024. I'm working around it by installing cython and numpy in a separate command prior to running the pip install for madmom, having them all in the same requirements.txt still has the same issue oddly. |
When using
|
Problem
When installing madmom via pip on Python 3 (e.g.
pip3 install madmom
),Cython is missing from the dependencies(correction: Cython is in the dependencies, but not installed before executingsetup.py
), causing the package install to fail when it is not installed already.Steps needed to reproduce the behaviour
Just install madmon via pip with Cython not installed.
The text was updated successfully, but these errors were encountered: