Skip to content

Commit

Permalink
ensure windows has all needed requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
noideaman committed Jul 8, 2022
1 parent 03d155d commit 4eb0fcb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions install/installpython.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Invoke-WebRequest "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" -OutFile .\python.zip
Expand-Archive -Path .\python.zip -DestinationPath .\python -Verbose
$file = '.\python\python310._pth'
$find = '#import site'
$replace = 'import site'
(Get-Content $file).replace($find, $replace) | Set-Content $file
Invoke-WebRequest 'https://bootstrap.pypa.io/get-pip.py' -OutFile .\python\get-pip.py
cd .\python
./python.exe get-pip.py --no-warn-script-location
cd .\scripts
./pip.exe install requests --no-warn-script-location
./pip.exe install python-osc --no-warn-script-location
Invoke-WebRequest "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" -OutFile .\python.zip
Expand-Archive -Path .\python.zip -DestinationPath .\python -Verbose
$file = '.\python\python310._pth'
$find = '#import site'
$replace = 'import site'
(Get-Content $file).replace($find, $replace) | Set-Content $file
Invoke-WebRequest 'https://bootstrap.pypa.io/get-pip.py' -OutFile .\python\get-pip.py
cd .\python
./python.exe get-pip.py --no-warn-script-location
cd .\scripts
./pip.exe install requests --no-warn-script-location
./pip.exe install python-osc --no-warn-script-location
./pip.exe install configparser --no-warn-script-location

0 comments on commit 4eb0fcb

Please sign in to comment.