Closed AndrewAnnex closed 3 years ago
To update the above, I have created a new PR for my project in which I switch over to using a src layout and setup.cfg removing most of what I do in setup.py but the issue persists https://github.com/AndrewAnnex/SpiceyPy/pull/428
Okay while I have not been able to directly create a breakpoint in setuptools to debug the issue which would have solved it much faster, I worked out that I had a chdir command I wasn't undoing in my setup.py that threw off pip/setuptools. I'm closing this issue.
setuptools version
58.2.0
Python version
Python 3.6-3.9
OS
MacOS/Linux/Windows
Additional environment information
I develop mainly on MacOS, currently 11.6, but the issue is occurring on Github CI workflows for my project on macos-latest, ubuntu-latest, windows-latest.
Description
running python setup.py install on Github CI actions OR pip install dist/*.tar.gz (from sdist) results in a "error: package directory 'spiceypy' does not exist" error without a clear cause. I don't know the exact cause of the bug because any attempts to debug it with pycharm/strace haven't revealed anything clear. Build logs and other code changes can be seen at https://github.com/AndrewAnnex/SpiceyPy/pull/424.
The project is a ctypes wrapper project that needs to be able to build a large ansi C library I do not maintain from source into a shared library. I don't use distutils.Extension to build the library because I need to patch a few of the c source files for bug fixes and ARM builds, and I don't want to distribute the sources as there are platform dependent changes to the source files which are only distributed as compressed archives not in version control. The library does not import cpython anywhere so I want to avoid the complications of extension for now (although I do have a branch where I am experimenting with it https://github.com/AndrewAnnex/SpiceyPy/pull/426/)
The project has been building on various CI services for years, the only recent change has been a recent switch to cibuildwheels which necessitated the following addition to my setup.py:
Again I can't seem to get a debugger to pause in the right place so I think it is occurring right after build_py. Confusingly, python setup.py install seems to fail on my ci builds, but not locally on macos
Expected behavior
I expect the build to continue, or at least to provide a more verbose reason the package is malformed
How to Reproduce
git clone --single-branch --branch add_arm64_wheels git@github.com:AndrewAnnex/SpiceyPy.git
python setup.py sdist
pip install ./dist/spiceypy-4.0.2.tar.gz
Output
Code of Conduct