-
Notifications
You must be signed in to change notification settings - Fork 262
feat: SDist builds #1096
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
feat: SDist builds #1096
Conversation
4db6b02
to
095a917
Compare
when calling like 'python -m cibuildwheel', we get errors like usage: __main__.py [-h] [--platform {auto,linux,macos,windows}] [--archs ARCHS] [--output-dir OUTPUT_DIR] [--config-file CONFIG_FILE] [--print-build-identifiers] [--allow-empty] [--prerelease-pythons] [package_dir] __main__.py: error: unrecognized arguments: --sad With this change, we get error outputs like: usage: cibuildwheel [-h] [--platform {auto,linux,macos,windows}] [--archs ARCHS] [--output-dir OUTPUT_DIR] [--config-file CONFIG_FILE] [--print-build-identifiers] [--allow-empty] [--prerelease-pythons] [package_dir] cibuildwheel: error: unrecognized arguments: --asda
9f07f8a
to
f6e4420
Compare
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
dd9c23f
to
68dd0d0
Compare
68dd0d0
to
b1e8549
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right! This approach is much cleaner than the extra entrypoint. Let's hope it passes the tests. I've a few minor comments, too.
63d841b
to
2ef1a6a
Compare
2ef1a6a
to
3505466
Compare
# This are always relative to the base directory, even in SDist builds | ||
args.output_dir = args.output_dir.resolve() | ||
|
||
# Standard builds if a directory or non-existent path is given |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoiding making a new directory if this ends with .tar.gz
Thanks @henryiii , at a first test this seems to work great! |
I couldn't resist and created https://github.com/nsoranzo/wheelforge to use this new feature to replace https://github.com/galaxyproject/starforge / https://github.com/galaxyproject/starforge-recipes/ |
This is a followup to both close #1072 and close #1020 to attempt to build from SDists. This avoids a new entry point, works better with pipx and GitHub Actions, and should be the same as #1072 conceptually but with a single entry point.
I am not adding
{project}
to--config-file
, since it was not supported before (and{package}
continues to work properly). It could be added later if desired (for both modes).