-
Notifications
You must be signed in to change notification settings - Fork 104
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: Improves python packaging infrastructure #414
base: main
Are you sure you want to change the base?
build: Improves python packaging infrastructure #414
Conversation
|
||
if "--plat-name" in sys.argv: |
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.
Doesn't seem like this was ever used. Not sure if it's needed in the new build flow
|
||
os.chdir(FLAGS.whl_dir) | ||
print("=== Building wheel") | ||
args = ["python3", "setup.py", "bdist_wheel"] | ||
args = ["python3", "-m", "build"] |
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.
Not sure how to make sure the build
package is installed in the containers.
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.
TODO: I need to double check this
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.
Started pipeline: 21638660
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.
Yep will need to install this in build container too
/usr/bin/python3: No module named build
error: Building wheel failed failed
I believe that would go here for RHEL and Ubuntu builds:
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.
I will try this out - pipeline 21672308
453dc31
to
b3d03f0
Compare
Need to run CI |
Updates the Python package to use `build` to package instead of the legacy `bdist_wheel` style. `pyproject.toml` is the single source of truth for the package. Additionally, this change also move stub generation to `setup.py` so that it happens automatically when the wheels are generated. This way the stub files don't need to be maintained in the repo and manually updated.
b3d03f0
to
a520e4a
Compare
Co-authored-by: Ryan McCormick <[email protected]>
Updates the Python package to use
build
to package instead of the legacybdist_wheel
style.pyproject.toml
is the single source of truth for the package.Additionally, this change also move stub generation to
setup.py
so that it happens automatically when the wheels are generated. This way the stub files don't need to be maintained in the repo and manually updated.