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

Specify the build-system in pyproject.toml #5531

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

justinchuby
Copy link
Contributor

@justinchuby justinchuby commented Aug 26, 2023

Description

Specify setuptools in the build-system section in pyproject.toml. So that setuptools gets installed when it is not in the environment when doing local install.

Motivation and Context

Fixes #4878

Signed-off-by: Justin Chu <justinchu@microsoft.com>
@justinchuby justinchuby requested a review from a team as a code owner August 26, 2023 16:25
@justinchuby justinchuby added this to the 1.15 milestone Aug 26, 2023
Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option: adding setuptools>=61.0.0 directly in https://github.com/onnx/onnx/blob/main/requirements.txt? but I also feel adding it in pyproject.toml seems more proper.

@jcwchen jcwchen added the build Issues related to ONNX builds and packages label Aug 26, 2023
@justinchuby
Copy link
Contributor Author

It doesn’t need to be in requirements because it’s a build time dependency not a runtime one

@justinchuby justinchuby added this pull request to the merge queue Aug 27, 2023
Merged via the queue into onnx:main with commit b8482d7 Aug 27, 2023
33 checks passed
@justinchuby justinchuby deleted the justinchu/build-system branch August 27, 2023 02:47
Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI for uploading onnx-weekly seems failed because of this PR: https://github.com/onnx/onnx/actions/runs/5993960831/job/16254965073.

@justinchuby
Copy link
Contributor Author

justinchuby commented Aug 28, 2023

Hmm. Looks like more things need to be fixed. I will revert

justinchuby added a commit that referenced this pull request Aug 28, 2023
github-merge-queue bot pushed a commit that referenced this pull request Aug 28, 2023
Reverts #5531 because the macos release pipeline is broken due
to the change.
@justinchuby justinchuby restored the justinchu/build-system branch August 28, 2023 19:11
github-merge-queue bot pushed a commit that referenced this pull request Aug 28, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of #5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes #4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

### Motivation and Context

Fixes onnx#4878

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
Reverts onnx#5531 because the macos release pipeline is broken due
to the change.

Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of onnx#5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes onnx#4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

### Motivation and Context

Fixes onnx#4878

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
Reverts onnx#5531 because the macos release pipeline is broken due
to the change.

Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of onnx#5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes onnx#4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
Reverts onnx#5531 because the macos release pipeline is broken due
to the change.

Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of onnx#5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes onnx#4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

### Motivation and Context

Fixes onnx#4878

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
Reverts onnx#5531 because the macos release pipeline is broken due
to the change.

Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of onnx#5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes onnx#4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
Reverts onnx#5531 because the macos release pipeline is broken due
to the change.

Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
corwinjoy pushed a commit to corwinjoy/onnx that referenced this pull request Sep 5, 2023
### Description

Specify setuptools in the build-system section in pyproject.toml. So
that setuptools gets installed when it is not in the environment when
doing local install.

Second attempt of onnx#5531 by removing `--no-use-pep517` in the test
pipeline

### Motivation and Context

Fixes onnx#4878

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to ONNX builds and packages
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

pip install in an environment without setuptools fails
2 participants