diff --git a/.gitignore b/.gitignore index 03792af..475310e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ /test/build/ __pycache__/ /py3c.pc +.eggs +dist +*.egg-info \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3480374 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b6cbd64 --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +import os +import glob + +from setuptools import setup + + +def find_headers(): + path = os.path.join(os.path.dirname(__file__), 'include') + for root, dirs, files in os.walk(path): + for filename in files: + if filename.endswith('.h'): + yield os.path.join(root, filename) + +with open('README.rst') as f: + long_description = f.read() + +setup( + name='py3c', + version='1.0a1', + description='Python compatibility headers', + long_description=long_description, + author='Petr Viktorin', + author_email='encukou@gmail.com', + url='http://py3c.readthedocs.io/', + headers=list(find_headers()), + platforms='any')