-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Build.py - suppress_known_deprecation needs to reference method not module #1309
Comments
Dang, old setuptools is working, but new one regressed, will be a hotfix and on factory branch soon. You can also try hotfix/0.6.18.3 branch by the same method as described in: https://nuitka.net/doc/factory.html |
Sorry for that, but this is new functionality, needs a bit of work still. |
I just tested the factory version of Nuitka and the suggested change fixed the suppress_known_deprecation error. |
Ah, I didn't see that one. What config is used there? |
All of my config information should be in the initial issue description. Let me know what other information you need |
I figured it out. The missing stuff error message went away when I added a setup.cfg file with the following content in the same directory as the pyproject.toml.
All of the metadata information is contained in the pyproject so I don't know why the build package also needs setup.cfg but it does for now. |
The I was really interested to see what your error is causing, it seems you might be doing something wrong with listing packages, or Nuitka with accepting them, I didn't see the equivalent of |
According to this https://setuptools.pypa.io/en/latest/build_meta.html both a pyproject.toml and a setup.cfg is needed and the only part of the toml file that matters for setuptools is the [build-system] section. Hopefully they will update that in the future or poetry might add the ability to use backends other than theirs. |
As a side note the requires works on windows, but on linux I had to add scons to the requires list |
test-nuitka-build.zip |
@bsvedin that needing scons very strange, because Nuitka contains scons as an inline copy already, and actually has no pip dependencies really needed |
I noticed the hotfix was not out on PyPI, which it now is, with that it works for me, now I think we want to get rid of |
Ok, the error message without it, is extremely cryptic, no way anybody would ever know what to do. |
What's really bad, is that I do not have a clue, how I would make it work with my local nuitka installation, is there a way to point pip requirements to filesystem without making a wheel or so, just that it installs it? |
I mean, crazy idea, but what if Nuitka just understood the |
It isn't just the packages value. If I don't have all the metadata in the setup.cfg, the created wheel file has name UNKNOWN and egg files are also named UNKNOWN |
Yes, basically the poetry config would have to be copied. Maybe somebody implements that one day. But I decided against maintaining it, would be easy to create, but lots of hours for me to keep intact, and poetry upstream is not willing to help, it seems. So the fix is part of the hotfix release and now it should work with stable Nuitka. I will enhance error messages and tracing for next release. I didn't immediately find out, how to access the build source directory, so I am leaving it at that. I will most probably add something to the docs, stating that poetry config is not used. If somebody were to create a script that converts poetry config to setup.cfg, I guess I could point to it. |
Well, it creates a |
It looks like this is an active area of development and discussion within the setuptools project |
Yes, that looks good, maybe once they do that, poetry and setuptools could use the same values, just dreaming. It's so great when people create a new config file to place stuff, just one more standard, because the others are supposedly bad. |
I am closing this, because it's release, but keep me posted please. |
Thanks again for working on this. I have been reading and learning a bunch while trying to figure this stuff out. The |
The preparing of the metadata is something that poetry itself obviously needs to handle, and then it should give that to the backend. But I guess it doesn't do that, or if it does, Nuitka doesn't pick up on that. |
New feature introduced from issue #1285
Related to issue #1306
Nuitka version - 0.6.18.2
Windows 10
Python 3.6.8 - installed using choco - choco install python3 --version 3.6.8
nuitka installed using pip
poetry version 1.1.12
C:\python36\Scripts - added to windows PATH. I can call nuitka and poetry directly from cmd line
nuitka --version
0.6.18.2
Commercial: None
Python: 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]
Flavor: Unknown
Executable: C:\Python36\python.exe
OS: Windows
Arch: x86_64
python -m pip freeze --all (only relevant packages copied here)
Cython==0.29.25
Nuitka==0.6.18.2
wheel==0.37.0
setuptools==59.5.0
build==0.7.0
While I have been unable to get poetry to use nuitka - issue raised python-poetry/poetry#4871
I attempted to build the wheel using pip package build and found a bug
Steps to reproduce
Same pyproject.toml as issue #1306
with build installed
pip install build
When forcing setuptools to an earlier version in the pyproject.toml requires - setuptools==42 - I get a different error
It should be a simple fix in Build.py
should be
I am leaning towards the second error - Missing both compile_packages and py_modules - being my own user error until I can investigate further. If needed, I can create an issue for that if not.
The text was updated successfully, but these errors were encountered: