Incorrect error thrown when running setup.py with a non-existent config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There is a missing import sys command in the setup.py. This means that if an install is attempted with the setup.py, an exception is thrown by missing the sys.exit() command, rather than just notifying that the config cannot be found.
The output of the incorrect version AFTER REMOVING THE demoprojectconf
~$ python setup.py install
running install
ERROR: Can't find demoproject/
Traceback (most recent call last):
File "setup.py", line 92, in <module>
cmdclass=
File "/usr/lib/
distutils.
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "setup.py", line 72, in run
previous_value = update_
File "setup.py", line 43, in update_data_path
sys.exit(1)
With the fix in place, the behaviour becomes
~$ python setup.py install
running install
ERROR: Can't find demoproject/
The fix is rather straightforward, being to import the sys module in the setup.py file.
Related branches
- Didier Roche-Tolomelli: Approve
-
Diff: 11 lines (+1/-0)1 file modifieddata/templates/ubuntu-project/project_root/setup.py (+1/-0)
description: | updated |
Changed in quickly: | |
status: | New → Triaged |
Changed in quickly: | |
status: | Triaged → Fix Committed |
milestone: | none → 0.4 |
Changed in quickly: | |
status: | Fix Committed → Fix Released |