-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #154, linux deps, offline install
- Loading branch information
1 parent
8b1c585
commit fcb7b6f
Showing
9 changed files
with
393 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Install scoop | ||
if ((Get-Command "scoop" -ErrorAction SilentlyContinue) -eq $null) { | ||
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
irm get.scoop.sh | iex | ||
} | ||
|
||
# Install versions bucket | ||
scoop bucket add versions -ErrorAction SilentlyContinue | ||
|
||
# Python versions | ||
$PYVERSIONS = @("37", "38", "39", "310") | ||
$PY = "python310" | ||
|
||
# Delete depspkg directory | ||
Remove-Item -Recurse -Force px.dist-wheels-windows-amd64 | ||
|
||
# Setup Python and dependencies, build wheels for Px | ||
foreach ($pyver in $PYVERSIONS) { | ||
if ((Get-Command "python$pyver" -ErrorAction SilentlyContinue) -eq $null) { | ||
# Install Python | ||
scoop install python$pyver | ||
} | ||
|
||
# Tools | ||
Invoke-Expression "python$pyver -m pip install --upgrade pip setuptools build wheel" | ||
|
||
# Create wheel dependencies for this Python version | ||
Invoke-Expression "python$pyver tools.py --deps" | ||
} | ||
|
||
# Install build tools | ||
Invoke-Expression "$PY -m pip install --upgrade nuitka twine" | ||
|
||
# Install wheel dependencies | ||
Invoke-Expression "$PY -m pip install --upgrade px-proxy --no-index -f px.dist-wheels-windows-amd64\px.dist-wheels" | ||
|
||
# Build wheels | ||
Invoke-Expression "$PY tools.py --wheel" | ||
|
||
# Create package of all dependencies | ||
Invoke-Expression "$PY tools.py --depspkg" | ||
|
||
# Build Nuitka | ||
Invoke-Expression "$PY tools.py --nuitka" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.