-
Notifications
You must be signed in to change notification settings - Fork 67
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
Use relative path for sources in setup.py #1130
Comments
I gave a try to a relative one:
|
😞 so much for the easy way.
Apparently they want the sources and setup.py in the same place. Some possibilities would be
# After the existing imports
import os
from distutils.ccompiler import CCompiler
CCompiler._make_relative = lambda self, base : os.path.splitdrive(base)[1].lstrip(r'\/')
Supposedly what we were doing was never supported. We can keep our fingers crossed that they will "fix" the recent regression, but they don't promise that it won't break again. |
I gave a try to symbolic links and it seems to work nicely on windows, osx and linux. CMake 3.14 is required, but |
Fixed by #1131 |
https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#extension-api-reference says about the parameters of
setuptools.Extension
However, we have in setup.py.in
sources = [source_dir + module + '.pyx',],
wheresource_dir='@CMAKE_CURRENT_SOURCE_DIR@/gudhi/'
, i.e. an absolute path.While this has been working so far, it seems to be the cause (one of the causes) of our current difficulties building for python 3.13 on windows on conda-forge.
(relevant ref: pypa/setuptools#4645)
The text was updated successfully, but these errors were encountered: