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
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).
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: