New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty setup.py leads to very obscure error #1

Closed
pytoxbot opened this Issue Sep 17, 2016 · 3 comments

Comments

Projects
None yet
1 participant
@pytoxbot

pytoxbot commented Sep 17, 2016

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/

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @hpk42

fix issue1: empty setup files are properly detected, thanks Anthon van
der Neuth

→ <<cset 182e8f03b686>>

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @hpk42

fix issue1: empty setup files are properly detected

→ <>

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @AvdN

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',)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment