Skip to content
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

python-package: Add build system requirements for correct installation #2114

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

andrii0yerko
Copy link
Contributor

Hello!
The known issue is that insightface package requires Cython and NumPy as prerequisites for installation.
Previously, the solution was only a mention about this in the readme (#1976)

But actually, these requirements can be added as "build system requirements" for the setuptools with pyproject.toml, to be installed before actual package installation.
This allows the package to be installed from sdist using only pip install insightface onnxruntime without any prerequisites steps.

Also, I'm not sure if I should bump the version of the package because of this change, so please feel free to decrease it back if the criteria for version increase are different.

@nttstar
Copy link
Collaborator

nttstar commented Sep 22, 2022

Hi, thanks, Is it working well for both Linux and Windows?

@andrii0yerko
Copy link
Contributor Author

andrii0yerko commented Sep 22, 2022

Can confirm it works with
Linux:

  • 5.15.0-39-generic #42-Ubuntu SMP x86_64 GNU/Linux
  • 5.13.19-2-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux
    also within python docker containers

Windows:

  • Microsoft Windows [Version 10.0.19044.1889]

With a pure python environment in all cases

I think it is enough

@nttstar nttstar merged commit ae233ba into deepinsight:master Sep 22, 2022
@nttstar
Copy link
Collaborator

nttstar commented Sep 22, 2022

Thanks, I will publish to PyPI later.

theparitt pushed a commit to theparitt/insightface that referenced this pull request Apr 4, 2024
python-package: Add build system requirements for correct installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants