3

When trying to run develop or install task of setuptools I am getting the Relative module names not supported error.

The command run is $ python -m setup.py develop

My setup.py script is pretty simple with one entry point:

setup(
    name='foo',
    version='1.2.3',
    # ...
    include_package_data=True,
    packages=find_packages(),
    entry_points={
        'console_scripts': [
            'foo = somepkg.somemodule:mainfunc'
        ]
    },
    install_requires=['requests',],
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'betamax', 'flexmock']
)

1 Answer 1

5

The issue was solved by not running setup.py as a module, i.e. running

$ python setup.py develop

instead of

$ python -m setup.py develop
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.