Julius
Julius

Reputation: 9

setup.py isn't including modules

setup.py includes modules in the same directory it is in but leaves out modules in the site.packages directory and in a lib folder I have added to the pythonpath.

Don't tell me it doesn't just import files like the python interpreter. It should if you name them.

programdir-->
programdir-->
datadir
program.py
functions.py
setup.py

setup.py

from distutils.core import setup

setup(name = "program",
    version = "1.0",
    description = "a program",
    author = "me",
    author_email = "[email protected]",
    url = "http://www.url.com",
    py_modules = ["program", "functions", "tweepy", "anothermod", "webbrowser","" ],
    data_files  = [("data", ["data/intros.txt"])],
    long_description = """
    Descriptttttionnnn
    """
        )

What am I doing wrong?

Upvotes: 0

Views: 470

Answers (2)

3k-
3k-

Reputation: 2563

Julius is using distutils, not setuptools. This means that requires shall be passed to the setup() function rather than install_requires. See the docs:

2.4. Relationships between Distributions and Packages

Upvotes: 0

Sebastian Blask
Sebastian Blask

Reputation: 2938

The setup.py is responsible for bundling and installing YOUR sources, not dependencies. However, you can specify requirements with install_requires (read the manual). This will be used by pip or setuptools to install the given dependencies, but it will not bundle them either.

Upvotes: 6

Related Questions