Skip to content

Commit

Permalink
Merge pull request #64 from beeware/pip-update
Browse files Browse the repository at this point in the history
Ensure that pip is updated when a crossenv is created.
  • Loading branch information
freakboy3742 authored Sep 25, 2024
2 parents 9386d53 + 3ff0720 commit 67059f7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/ninja/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: ninja
version: 1.11.1
version: 1.11.1.1

build:
number: 1
Expand Down
32 changes: 31 additions & 1 deletion src/forge/cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,37 @@ def create(
self.verify()
print("done.")
print()
print(f"Cross platform-environment {self} created.")
print(f"Cross platform environment {self} created.")

print()
print("Updating cross-pip...")
self.run(
None,
[
"cross-python",
"-m",
"pip",
"install",
"--disable-pip-version-check",
"--upgrade",
"pip",
],
)

print()
print("Updating build-pip...")
self.run(
None,
[
"build-python",
"-m",
"pip",
"install",
"--disable-pip-version-check",
"--upgrade",
"pip",
],
)

def verify(self):
# python returns the cross-platform host tag.
Expand Down

0 comments on commit 67059f7

Please sign in to comment.