Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
includes working example of advanced pip use
- Loading branch information
Showing
5 changed files
with
56 additions
and
4 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
src |
1 change: 1 addition & 0 deletions
1
tests/conda_env/support/advanced-pip/another-project-requirements.txt
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 @@ | ||
six |
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,29 @@ | ||
name: advanced-pip-example | ||
|
||
dependencies: | ||
- pip | ||
- pip: | ||
|
||
# Global options can be tweaked. | ||
# For example, if you want to use a pypi mirror first: | ||
- --index-url https://pypi.doubanio.com/simple | ||
- --extra-index-url https://pypi.python.org/simple | ||
# (check https://www.pypi-mirrors.org/) | ||
|
||
# Current syntax still works | ||
- xmltodict==0.10.2 | ||
|
||
# Install in editable mode. | ||
# More natural than - "--editable=git+https://github.com/neithere/argh.git#egg=argh | ||
- -e git+https://github.com/neithere/argh.git#egg=argh | ||
|
||
# You could also specify a package in a directory. | ||
# The directory can be relative to this environment file. | ||
- -e ./module_to_install_in_editable_mode | ||
|
||
# Use another requirements file. | ||
# Note that here also we can use relative paths. | ||
# pip will be run from the environment file directory, if provided. | ||
- -r another-project-requirements.txt | ||
|
||
# Anything else that pip requirement files allows should work seamlessly... |
6 changes: 6 additions & 0 deletions
6
tests/conda_env/support/advanced-pip/module_to_install_in_editable_mode/setup.py
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,6 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name='module_to_install_in_editable_mode', | ||
packages=[], | ||
) |
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