Conversation
Signed-off-by: Henry Schreiner <[email protected]>
|
This won't work in an editable install: spglib/python/spglib/spglib.py Line 50 in c3af1dc Because the |
There was a problem hiding this comment.
FYI, MANIFEST.in is a setuptools thing. Scikit-build-core uses sdist.include and sdist.exclude.
There was a problem hiding this comment.
Indeed, I have that in a clean-up pr
|
Thanks for the help on this |
Actually I think we can do this with RPATH. The first part is so that it can use the system's How about exposing two
|
Editable installs overwrite the paths relative to the package names, and it fails when directory relative paths are used Signed-off-by: Cristian Le <[email protected]>
|
Ok I have added a quick fix for the python paths to make it work with editable installs. I have also tested the RPATH and it works fine. Just needs an implementation in scikit-build-core ;) For reference here is what I did manually: $ pip install -e .
$ cd venv/lib/python3.11/site-packages/spglib
$ patchelf --add-rpath $(pwd) _spglib.cpython-311-x86_64-linux-gnu.so
$ readelf -d _spglib.cpython-311-x86_64-linux-gnu.so
$ cd ../../../../../
$ pytestThe PS: the 3-4 rebuilding issue is also fixed by this |
Codecov ReportPatch and project coverage have no change.
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## develop #269 +/- ##
========================================
Coverage 85.90% 85.90%
========================================
Files 23 23
Lines 6071 6071
========================================
Hits 5215 5215
Misses 856 856
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Using Python for the python portion is better, especially for editable installs. Still seems to be an issue in scikit-build-core with the path on the editable install for the .so file, though, so will look into it.