I am trying to include a source distribution in a program I am writing.
However, I want it to include the main .py
file AND any other modules/packages it used.
Here is my setup.py
script:
from distutils.core import setup
setup_options = {
'name': 'somename', 'version': '1.11',
'author': 'developer', 'author_email': 'email', 'py_modules': ['mymodule'],
}
setup(**setup_options)
However, using command line to run python setup.py bdist
only creates a folder with mymodule.py
.
Also, another script I have (to create a standalone .exe) does not include the data files:
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(name = "somename",
version = "1.11",
description = "some description",
executables = [Executable("mymodule.py", base=base)],
data_files = ['helpData.pkl', 'General Public License - 3.0.pdf'])
(I am executing it using python setup.py bdist --format=msi
).
How can I include all of the modules for my first setup script and include the data files for my second script? Thanks!