Skip to content

Instantly share code, notes, and snippets.

@arne-cl
Created May 4, 2014 13:02
Show Gist options
  • Save arne-cl/c7d156b48a8ecf27f207 to your computer and use it in GitHub Desktop.
Save arne-cl/c7d156b48a8ecf27f207 to your computer and use it in GitHub Desktop.
minimal example setup.py for a single-module package
#!/usr/bin/env python
import sys
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
setup(name='my_package_name',
version='my_version_number',
description='',
long_description=README,
author='',
author_email='',
url='',
py_modules=['my_module_name'],
scripts=['my_module_name.py'],
license='',
install_requires=['other_package_name'],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment