Skip to content

Commit c4b068c

Browse files
authored
Fix dist build (#6139)
* Use tox-venv to reduce warnings in output * Remove .egg-info/ to allow wheel installation tox now invokes pip as a python module instead of through its entry point. "python -m" adds the current directory to the PYTHONPATH, picking up the .egg-info/ metadata directory, tricking pip into thinking that the package is already installed (and thus not installing the wheel). Deleting the metadata directory fixes this.
1 parent 90ed2c1 commit c4b068c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ matrix:
2929
env: TOXENV=dist
3030
script:
3131
- python setup.py bdist_wheel
32+
- rm -r djangorestframework.egg-info # see #6139
3233
- tox --installpkg ./dist/djangorestframework-*.whl
3334
- tox # test sdist
3435

@@ -44,7 +45,7 @@ matrix:
4445
- env: DJANGO=2.1
4546

4647
install:
47-
- pip install tox tox-travis
48+
- pip install tox tox-venv tox-travis
4849

4950
script:
5051
- tox

0 commit comments

Comments
 (0)