Issues

Issue #1 resolved

Empty setup.py leads to very obscure error

Alex Gaynor
created an issue

I accidentally tried to run tox on a project who's setup.py was an empty file, the error message I got was obscure: http://paste.pocoo.org/show/399000/

Comments (4)

  1. Anthon van der Neut

    The obscure message cannot be viewed online anymore. Currently an empty (or comment only) setup.py gives:

    GLOB sdist-make: /data1/src/empty/setup.py
    Traceback (most recent call last):
      File "/data1/env/empty/bin/tox", line 9, in <module>
        load_entry_point('tox==1.6rc1', 'console_scripts', 'tox')()
      File "/data1/src/tox/tox/_cmdline.py", line 26, in main
        retcode = Session(config).runcommand()
      File "/data1/src/tox/tox/_cmdline.py", line 301, in runcommand
        return self.subcommand_test()
      File "/data1/src/tox/tox/_cmdline.py", line 429, in subcommand_test
        sdist_path = self.sdist()
      File "/data1/src/tox/tox/_cmdline.py", line 411, in sdist
        sdist_path = self._makesdist()
      File "/data1/src/tox/tox/_cmdline.py", line 325, in _makesdist
        return self.config.distdir.listdir()[0]
      File "/data1/env/empty/local/lib/python2.7/site-packages/py/_path/local.py", line 349, in listdir
        names = py.error.checked_call(os.listdir, self.strpath)
      File "/data1/env/empty/local/lib/python2.7/site-packages/py/_error.py", line 84, in checked_call
        raise cls("%s%r" % (func.__name__, args))
    py.error.ENOENT: [No such file or directory]: listdir('/data1/src/empty/.tox/dist',)
    
  2. Log in to comment