[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2747: "tox" on debian (py3) can't run our setup.py

Tahoe-LAFS trac at tahoe-lafs.org
Tue Mar 22 04:55:51 UTC 2016


#2747: "tox" on debian (py3) can't run our setup.py
---------------------------+--------------------
     Reporter:  warner     |      Owner:  warner
         Type:  defect     |     Status:  new
     Priority:  normal     |  Milestone:  1.10.3
    Component:  packaging  |    Version:  1.10.2
   Resolution:             |   Keywords:
Launchpad Bug:             |
---------------------------+--------------------

Comment (by warner):

 I started working on this, but it's not trivial. We basically need to make
 our `setup.py` work correctly under both py2 and py3. The problems:

 * `execfile(../_auto_deps.py)`
 * the code that runs `git` to compute a version string has bytes-vs-str
 issues

 If I bypass those two issues, tox is able to install an sdist, and then
 run the tests.

 The second issue will be fixed when we move to Versioneer (#2748).

 The first needs us to either find a py2/py3-compatible equivalent of
 `execfile()`, or (my preference) remove `_auto_deps.py` and move the
 `install_requires=` list into `setup.py`. That will also entail removing a
 lot of the code from `__init__.py` that checks what versions of things are
 installed and complains if they don't look right (and frequently complains
 even if they do). #2749 covers this (#2283 is related, but doesn't go far
 enough).

 I'm torn whether to try to address this in the upcoming release (for the
 sake of developers using system "tox" on recent debian/ubuntu), or to punt
 until the next release (to avoid the deep `__init__.py` changes it would
 require).

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2747#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list