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

bdist_wheel being run instead of install, advice needed #1194

Closed
AndrewAnnex opened this issue Nov 10, 2017 · 0 comments
Closed

bdist_wheel being run instead of install, advice needed #1194

AndrewAnnex opened this issue Nov 10, 2017 · 0 comments
Labels
Needs Triage Issues that need to be evaluated for severity and status.

Comments

@AndrewAnnex
Copy link

Hey so in my setup.py https://github.com/AndrewAnnex/SpiceyPy/blob/master/setup.py, I implement the install command for my package as I need to build and bundle a shared library which I do at "build time" aka the run time of my setup.py.

I noticed that on my mac if I run pip install spiceypy to install from pypi, pip attempts to build a wheel instead of running my install command (I see "Running setup.py bdist_wheel for spiceypy" in the terminal). Because this side-steps the Install command it does hit my code which builds the shared library. If I instead install using --no-cache-dir that appears to trigger the correct behavior (the Install command is executed instead).

I can see the logic in pip at https://github.com/pypa/pip/blob/b9feb191a90e6ed4ef376d41ea9c1a896861f65b/src/pip/_internal/commands/install.py#L282 which explains why disabling the cache works.

Could I get a recommendation for a fix? It seems that I need to override the behavior of bdist_wheel using the cmdclass dict, but I think that would mean needing to depend on pip and or wheel directly which seems like a bad way to fix. Is there a cleaner way to do this?

Thanks

@pganssle pganssle added the Needs Triage Issues that need to be evaluated for severity and status. label Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

2 participants