1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #294 resolved

setup.py should be callable from an arbitrary directory

Antoine Pitrou
created an issue

Right now running setup.py from another directory fails, which is mildly annoying:

{{{ (env) [antoine@localhost env]$ python ~/distribute/setup.py build Traceback (most recent call last): File "/home/antoine/distribute/setup.py", line 14, in <module> for line in open("MANIFEST.in"): FileNotFoundError: [Errno 2] No such file or directory: 'MANIFEST.in' }}}

Comments (5)

  1. Jason R. Coombs
    • changed status to open

    I am aware of several aspects that expect the script to be run from the current directory. The patch is probably appropriate. Arfrever - can you add a unit test and changelog entry?

  2. Jason R. Coombs

    Also to consider - does distutils make the same assumption (that the script is run from its directory)?

    And if we change the current working directory, should we change back to the original directory after running?

  3. Log in to comment