Skip to content
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

Fix setup.py to work with setuptools 41.4.0 and later #46

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

dgelessus
Copy link
Contributor

@dgelessus dgelessus commented Apr 27, 2020

Fixes #43 and fixes #45 and fixes #47.

This change is effectively also included in #39, but there hasn't been any progress on that PR recently. The setuptools compatibility issue has been reported multiple times recently (which makes sense - the current code is incompatible with many recent setuptools versions), so I think it makes sense to apply this fix separately from the larger PR #39.

Manually parsing setup.cfg and passing the parsed data into the setup
function is not officially supported by setuptools (see
pypa/setuptools#1869) and is also unnecessary, because the setup
function will automatically read the relevant data from setup.cfg.
@GreyCat
Copy link
Member

GreyCat commented Apr 30, 2020

I can't check this myself currently — can someone else double-check what it is indeed the solution and we can proceed?

@generalmimon
Copy link
Member

generalmimon commented Apr 30, 2020

@GreyCat @dgelessus I've created a simple repo ks-python-runtime-setuptools-test testing the setup.py against various versions of Python and setuptools, using the runtime libraries kaitai-io/kaitai_struct_python_runtime@master and dgelessus /kaitai_struct_python_runtime@fix_setup_cfg_read. It's pretty easy to test all combinations with the strategy/matrix key, and apparently the GitHub Actions are way faster than my local machine 🚀.

But there is some issue with installing the setuptools in some version combinations, could you please look at the GH Actions logs to explore it more, @dgelessus? I've invited you as a collaborator, you should see some invitation here. I have no idea what's wrong with that, I'm not familiar with the Python, pip and setuptools too much.

@generalmimon
Copy link
Member

generalmimon commented Apr 30, 2020

@GreyCat It seems that this PR really solves the problem explained in #45, here's the evidence: https://github.com/generalmimon/ks-python-runtime-setuptools-test/actions/runs/92079674. I've finally managed to fix the build.

The GH Actions are really handy 👍

@GreyCat
Copy link
Member

GreyCat commented Apr 30, 2020

@generalmimon, you sir just continue to amaze me — going forward with such large-scale testing and really proving what is what :)

@dgelessus, thanks for contributing this fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants