-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
1.4.0 fails to build from source #130
Comments
Thanks for the report. It may be related to the latest setuptools release. Can you post the exact comment you invoked ? |
|
I'm not sure it's a setuptools issue, setuptools 49.6.0 also gives the same error (I tried some other setuptools releases, and I did upgrade setuptools initially when the install failed). |
Ah, it does look like a setuptools issue (partially), as if I use
|
Ah, and that's fixed by installing |
I've filed pypa/setuptools#3197 with the setuptools developers. |
Based on your first error message setuptools may be confused by the fact that kiwi does not have any source to include since it is a single C extension. If you want to experiment you could try specifying it explicitly in setup.py . |
I suspect there's some underlying assumption in setuptools that there will be some python files to package (as far as I can see kiwisolver has none, as the tests aren't included). I wonder if having a dummy |
Actually it may take some extra work since I apparently messed up and the type annotations are not installed properly currently. So I will indeed need a package to hold both the extension and the annotations. It will take me some time to get to it. If this is something you would be interested in working into let me know. |
Is there something i can do to install kiwi ? Since kiwi required to install matplotlib |
Wheels should install just fine. I believe the issue only affects building from source. |
Yeah I am using termux an android emulator of bash. So there's no wheel for it. Seems like i gotta wait for it to be solved. |
You can clone the repo and put a bound setuptools<=60 in pyproject.toml. Only the latest version of setuptools broke things. |
This is breaking our entire CI environment. And thanks to build isolation, which always pulls in the latest setuptools version, I can't even fix it with a pin. |
Setuptools broke kiwi. However it also helped discover some issues related to the distribution of type hints. #131 will fix both. I will do my best to make a 1.4.1 release shortly. |
#131 is in so you should be able to build from the repo at least. |
I installed an older version of setuptools. But I am still getting the error aragilar posted in the first post.
Error : https://pastebin.com/tJv40qAe |
Due to how pip manage isolated build environment you are still getting the latest setuptools (hence my recommandation to edit pyproject.toml). #131 has been merged so main should now build cleanly. I will do a new release ASAP. |
setuptools also in the meantime released bugfix versions that should restore the ability to build 1.4.0. |
Setuptools bug fixes does not disable auto discovery which causes the issue in kiwisolver. I will do my best to cut 1.4.1 today |
Should be fixed by 1.4.1 |
It works now thks a lot. |
It appears there's something wrong with either
setup.py
orpyproject.toml
for 1.4.0, as trying to build from source gives the following:This is in a clean Python 3.9 virtualenv with
The text was updated successfully, but these errors were encountered: