Skip to content

Commit 0574d87

Browse files
Use --no-use-pep517 flag for editable mode with pyproject.toml (#455)
* Use --no-use-pep517 flag for editable mode during installation and update docs to reflect this - pypa/pip#6434 - pypa/pip#6442 * Add .eggs to Black exclude list
1 parent 44e0701 commit 0574d87

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_install:
1010
- export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"
1111
- pip install --upgrade pip setuptools wheel
1212
install:
13-
- pip install --ignore-installed -U -q -e .[complete]
13+
- pip install --ignore-installed -U -q --no-use-pep517 -e .[complete]
1414
- pip freeze
1515
script:
1616
- pyflakes pyhf
@@ -69,7 +69,7 @@ jobs:
6969
- export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"
7070
- pip install --upgrade pip setuptools wheel
7171
install:
72-
- pip install --ignore-installed -U -q -e .[complete]
72+
- pip install --ignore-installed -U -q --no-use-pep517 -e .[complete]
7373
- pip freeze
7474
script: python -m pytest -r sx --benchmark-sort=mean tests/benchmarks/
7575
after_success: skip
@@ -82,7 +82,7 @@ jobs:
8282
- export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"
8383
- pip install --upgrade pip setuptools wheel
8484
install:
85-
- pip install --ignore-installed -U -q -e .[complete]
85+
- pip install --ignore-installed -U -q --no-use-pep517 -e .[complete]
8686
- pip freeze
8787
script:
8888
- python -m doctest README.md

docs/development.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and install all necessary packages for development
1111

1212
.. code-block:: console
1313
14-
pip install --ignore-installed -U -e .[complete]
14+
pip install --ignore-installed -U --no-use-pep517 -e .[complete]
1515
1616
Then setup the Git pre-commit hook for `Black <https://github.com/ambv/black>`__ by running
1717

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include = '\.pyi?$'
77
exclude = '''
88
/(
99
\.git
10+
| .eggs
1011
| build
1112
)/
1213
'''

0 commit comments

Comments
 (0)