-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing files for windows when creating venv (#148)
With this fix we will move python.exe / pythonw.exe from Lib/Scripts/nt when running on windows.
- Loading branch information
Showing
2 changed files
with
67 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,3 +121,35 @@ jobs: | |
${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}} | ||
-- | ||
--nocapture | ||
|
||
# test if venv works properly on windows | ||
# using old and newest python version | ||
# our implementation will fail on 3.7.4 | ||
# and we emit warning | ||
- name: Install pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
run-install: false | ||
|
||
- name: Run pixi python==3.7.5 test | ||
if: contains(matrix.name, 'Windows') | ||
shell: bash | ||
run: | | ||
mkdir pixi_old | ||
cd pixi_old | ||
pixi init | ||
pixi add "python==3.7.5" | ||
cd ../ | ||
cargo run -- boltons --only-sdists -p /d/a/rip/rip/pixi_old/.pixi/env/python.exe | ||
- name: Run pixi latest python test | ||
if: contains(matrix.name, 'Windows') | ||
shell: bash | ||
run: | | ||
mkdir pixi_new | ||
cd pixi_new | ||
pixi init | ||
pixi add python | ||
cd ../ | ||
cargo run -- boltons --only-sdists -p /d/a/rip/rip/pixi_new/.pixi/env/python.exe |
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