python - Setuptools: Import from 'project' with setup.py in ...
stackoverflow.com › questions › 53488780from setuptools import setup, find_packages packages = find_packages(exclude=['ez_setup', 'tests', 'tests.*']) console_script = list() console_script.append('MyApp = MyApp:main') py_modules = list() py_modules.append('MyApp') other_files = list() other_files.append('MyApp.ini') module_name = "MyModule" mysetup = setup(name=module_name, py_modules=py_modules, version="1.0.0", packages=packages, package_dir={module_name: module_name}, package_data={module_name: other_files}, include_package ...