Martin Melka
Martin Melka

Reputation: 7789

Running setup.py installation - Relative module names not supported

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

Upvotes: 3

Views: 9542

Answers (1)

Martin Melka
Martin Melka

Reputation: 7789

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

Upvotes: 5

Related Questions