Skip to content

Conversation

@benoit-pierre
Copy link
Member

@benoit-pierre benoit-pierre commented Apr 8, 2018

  • fix build environment handling when using PyPy
  • do use the build environment for all build commands
  • allow installing and building a wheel of a PEP 518 enabled package without prior installation of setuptools and/or wheels
  • fix check for minimum supported requirements for PEP 518 support:
    • correctly handle complex requirements
    • both setuptools and wheels are needed

Fix #5188.

Copy link
Member

@pfmoore pfmoore left a comment

Choose a reason for hiding this comment

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

Relatively minor points here. The bulk of the changes look fine to me.

Copy link
Member

Choose a reason for hiding this comment

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

Use os.path.join here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's os.pathsep, not os.path.sep.

Copy link
Member

Choose a reason for hiding this comment

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

Doh. I'm dense, sorry.

Copy link
Member

Choose a reason for hiding this comment

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

I assume the changes to this block are related to PyPy support? Having a comment here explaining what's going on would be really useful (from my tests on Windows, get_python_lib returns absolute paths, so what's up with appending platlib to purelib?)

(I know this is basically code that was already present, so I'm happy if the answer is that you don't know enough of the detail to write a reasonable comment).

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add a comment. As for appending, see comment above.

Copy link
Member

Choose a reason for hiding this comment

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

Realising it's os.pathsep, the comment's probably not needed...

Copy link
Member

Choose a reason for hiding this comment

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

nit: plural "requirements" looks odd if there's only one missing requirement. Maybe reword? Something like "Missing buildtime requirements in pyproject.toml for %s: %s"?

* fix build environment handling when using PyPy
* do use the build environment for all build commands
* allow installing and building a wheel of a PEP 518 enabled
  package without prior installation of setuptools and/or wheels
* fix check for minimum supported requirements for PEP 518 support:
  - correctly handle complex requirements
  - both setuptools and wheels are needed
@benoit-pierre
Copy link
Member Author

Amended.

@benoit-pierre
Copy link
Member Author

benoit-pierre commented Apr 8, 2018

It would be great if someone with permissions on AppVeyor could enable rolling builds. My previous build was still running...

@benoit-pierre
Copy link
Member Author

Correction, it's still running...

@pfmoore
Copy link
Member

pfmoore commented Apr 8, 2018

Agreed, and I've done that. @pypa/pip-committers If anyone has any concerns about having rolling builds on, let me know (but it seems like a great idea to me).

@pfmoore
Copy link
Member

pfmoore commented Apr 8, 2018

@pradyunsg If you have time to take a look at this, I'd appreciate a second review (but if you're busy, I'm OK with merging this myself).

@pfmoore pfmoore added this to the 10.0 milestone Apr 8, 2018
@pradyunsg pradyunsg added the type: enhancement Improvements to functionality label Apr 9, 2018
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

No time, sorry but the code looks good on skimming using the Github Web UI.

@pfmoore pfmoore merged commit 516adb4 into pypa:release/10.0.0 Apr 9, 2018
@pfmoore
Copy link
Member

pfmoore commented Apr 9, 2018

No problem @pradyunsg and thanks for the fixes @benoit-pierre!

@lock
Copy link

lock bot commented Jun 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

auto-locked Outdated issues that have been locked by automation type: enhancement Improvements to functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants