Setup fails without Setuptools
Bug #604430 reported by
Randy Heydon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
objgraph |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
setup.py opens with four lines to import the "setup" function. First it tries importing from setuptools, then from distutils.
However, the setup function is actually found in distutils.core. Therefore, if setuptools is not available, the import and subsequent installation will fail.
To solve: replace "from distutils import setup" with "from distutils.core import setup".
Changed in objgraph: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thank you for the patch; applied. I'll push a new release to PyPI soon.
(Incidentally, unified diffs are easier to read and apply; diff -u is your friend.)