Skip to content

Commit

Permalink
set extra args for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Mar 23, 2024
1 parent 3985226 commit 92f60d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/universal2_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
if requirement.name in no_universal2_packages:
normalized_name = requirement.name.replace("-", "_")
package_version = str(requirement.specifier).lstrip("<>=")
extra_args = []
if requirement.name == "cx-Freeze":
extra_args = ["--extra-index-url", "https://marcelotduarte.github.io/packages/"]
for macos_platform in macos_single_platforms:
subprocess.call(
[
Expand All @@ -47,6 +50,7 @@
"--no-deps",
"--only-binary",
":all:",
*extra_args,
]
)
universal2_wheel_name = f"{normalized_name}-{package_version}-{python_version}-{python_version}-{macos_universal_platform}.whl"
Expand Down

0 comments on commit 92f60d9

Please sign in to comment.