Skip to content
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

DistutilsGetoptError: invalid long option 'exclude-dir=': must be a string of length >= 2 #4

Open
cyrilleverrier opened this issue Dec 8, 2017 · 2 comments

Comments

@cyrilleverrier
Copy link

Similar issue as kgrandis/nose-exclude#4, adamchainz/nose-randomly#11, etc.

When invoking through setup.py nosetests (instead of nosetests directly), the following error message is provided:

python setup.py nosetests --with-xunit --xunit-file=./build/unit-tests/tests-py2-xunit.xml --exclude-dir=./devtools/
Traceback (most recent call last):
  File "setup.py", line 67, in <module>
    'fsm_rest_api=fsm_rest_api.main:main',
  File "/usr/lib/python2.7/distutils/core.py", line 137, in setup
    ok = dist.parse_command_line()
  File "/home/cyrille/code/infiniband/partitioning_rest_api/.venvs/partitioning_rest_api_py2/local/lib/python2.7/site-packages/setuptools/dist.py", line 299, in parse_command_line
    result = _Distribution.parse_command_line(self)
  File "/usr/lib/python2.7/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/home/cyrille/code/infiniband/partitioning_rest_api/.venvs/partitioning_rest_api_py2/local/lib/python2.7/site-packages/setuptools/dist.py", line 609, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "/usr/lib/python2.7/distutils/dist.py", line 564, in _parse_command_opts
    (args, opts) = parser.getopt(args[1:])
  File "/usr/lib/python2.7/distutils/fancy_getopt.py", line 253, in getopt
    self._grok_option_table()
  File "/usr/lib/python2.7/distutils/fancy_getopt.py", line 171, in _grok_option_table
    "must be a string of length >= 2") % long
distutils.errors.DistutilsGetoptError: invalid long option 'with-skipnose': must be a string of length >= 2
@cyrilleverrier
Copy link
Author

cyrilleverrier commented Dec 19, 2017

See PR #5

@pbirnie
Copy link

pbirnie commented Jan 16, 2018

encountered same issue, PR fixes this, any eta on a new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants