-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use separate test file for working dir test
- Loading branch information
1 parent
d2ab895
commit 5d04499
Showing
3 changed files
with
42 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"$id": "https://schemas.conda.io/menuinst-1.schema.json", | ||
"menu_name": "Sys.Prefix {{ DISTRIBUTION_NAME }}", | ||
"menu_items": [ | ||
{ | ||
"name": "Sys.Prefix", | ||
"description": "This will install to Windows and Linux with default options. MacOS has a custom option.", | ||
"icon": null, | ||
"command": [ | ||
"{{ PYTHON }}", | ||
"-c", | ||
"import sys; print(sys.prefix)" | ||
], | ||
"platforms": { | ||
"win": { | ||
"command": [ | ||
"{{ PYTHON }}", | ||
"-c", | ||
"import sys; f = open(r'__OUTPUT_FILE__', 'w'); f.write(sys.prefix); f.close()" | ||
], | ||
"description": "Note how __OUTPUT_FILE__ is using raw-strings. Otherwise the backslashes are not properly escaped.", | ||
"working_dir": "%TEMP%/working_dir_test" | ||
}, | ||
"linux": { | ||
"working_dir": "${TMP}/working_dir_test" | ||
}, | ||
"osx": { | ||
"CFBundleName": "Sys Prefix", | ||
"working_dir": "${TMPDIR}/working_dir_test" | ||
} | ||
} | ||
} | ||
] | ||
} |
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