Patchwork D11710: pyoxidizer: force pip to not use pep517 in order to still be able to install hg

login
register
mail settings
Submitter phabricator
Date Oct. 20, 2021, 3:04 p.m.
Message ID <differential-rev-PHID-DREV-o3ykphuvtvfw3r25uskm-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50034/
State Superseded
Headers show

Comments

phabricator - Oct. 20, 2021, 3:04 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Mercurial is not (yet) a pep517 package, but the presence of a pyproject.toml
  file tells newer-ish versions of pip that it should be one.
  
  This is related to 58fe6d127a01 <https://phab.mercurial-scm.org/rHG58fe6d127a014d8dfc93a56b5e361944ee47a6c6>, and fixes pyoxidizer builds for the Heptapod
  CI.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D11710

AFFECTED FILES
  rust/hgcli/pyoxidizer.bzl

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hgcli/pyoxidizer.bzl b/rust/hgcli/pyoxidizer.bzl
--- a/rust/hgcli/pyoxidizer.bzl
+++ b/rust/hgcli/pyoxidizer.bzl
@@ -122,7 +122,7 @@ 
     )
 
     # Add Mercurial to resources.
-    exe.add_python_resources(exe.pip_install(["--verbose", ROOT]))
+    exe.add_python_resources(exe.pip_install(["--verbose", "--no-use-pep517", ROOT]))
 
     # On Windows, we install extra packages for convenience.
     if IS_WINDOWS: