-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
setup.py based installation can mix universal and CPython ABI #322
Comments
Good catch.
Probabily, we want to use something like Moreover, we have another related problem. If you have only if self.distribution.ext_modules:
self.build_lib = self.build_platlib
else:
self.build_lib = self.build_purelib I don't know whether this might cause problems or not, to be honest. I thought it was a quick fix and I've started a branch, but it seems more messy than expected. |
An update on this. It seems to depend on the version of setuptools:
I think that |
Failing with older setuptools makes a lot of sense -- that one can obtain two possible versions of distutils already causes other difficulties too and the Python distutils is deprecated and scheduled for removal in any case. |
When installing a HPy extension by using
python setup.py --hpy-abi=ABI install
, thebuild
directory is not cleared between builds. If the user installs the extension with different ABIs and does not clean thebuild
directory in between, then bothmyextension.hpy.so
andmyextension.cpython-38-...so
are installed and the later takes precedence when the extension is loaded. Unless one knows how HPy works internally figuring out what's going on and why universal mode does not work can be bad first user experience.The text was updated successfully, but these errors were encountered: