[tor-bugs] #31234 [Core Tor/Stem]: stem setup.py needs cleanup
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Jul 25 08:03:14 UTC 2019
#31234: stem setup.py needs cleanup
---------------------------+--------------------------
Reporter: cypherpunks | Owner: atagar
Type: defect | Status: reopened
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------+--------------------------
Changes (by cypherpunks):
* status: closed => reopened
* resolution: wontfix =>
Comment:
> The only alternative is to duplicate this information which is more
error prone.
This is wrong. Lot of projects just read the file by its path and parse
the version with a regex.
> Yup, but also sadly the only python builtin. In our case we don't need
any of the capabilities setuptools provides so it is not worth taking it
as a dependency.
You can
try:
import setuptools
except ImportError:
import distutils
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31234#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list