Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5149
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] Flake8 via tox immer mit Python 3 laufen lassen (Win, Linux u. OS X) |
| Date | 2018-04-17 14:16 +0200 |
| Message-ID | <mailman.59.1523967939.6649.python-de@python.org> (permalink) |
| References | <1b7135f2-33ed-a1db-376a-706d513ff9a3@chrisarndt.de> |
Hallo allerseits,
in meinen Projekten habe ich in der tox.ini gewöhnlich folgendes stehen:
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 {toxinidir}/mypackage {toxinidir}/tests
Jetzt habe ich aber festgestellt, dass das unter Windows nicht
funktioniert, beim Erstellen des Virtualenv wird mit der Fehlermeldung
abgebrochen, dass "python3" nicht gefunden wurde.*
Es funktioniert (unter Windows und Linux), wenn ich statt dessen
"basepython = python3.6" eintrage, aber das setzt halt voraus, dass
Python 3.6 installiert ist.
Wie erreiche ich, dass das flake8 Virtualenv mit der Python *3* Version
gebaut wird, die halt auf dem System vorhanden ist? Und das Ganze so,
dass es auf Winows, Linux und OS X funktioniert?
Gruß, Chris
* Ich habe die offiziellen Python-Installer für Python 2.7, 3.4, 3.5 und
3.6 jeweils in 32-bit (C:\PythonXY) und 64-bit (C:\PythonXY_64)
installiert, Python 3.6 (64-bit) ist im PATH.
Back to de.comp.lang.python | Previous | Next | Find similar
[Python-de] Flake8 via tox immer mit Python 3 laufen lassen (Win, Linux u. OS X) Christopher Arndt <chris@chrisarndt.de> - 2018-04-17 14:16 +0200
csiph-web