From 869badbc3b3b9f248555ec5c4b1d395467c5db32 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 12 Jul 2013 11:40:22 +0200 Subject: [PATCH 1/2] add setup.py --- setup.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..77b7980 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# vi:si:et:sw=4:sts=4:ts=4 +# encoding: utf-8 +try: + from setuptools import setup +except: + from distutils.core import setup + +setup( + name="ebml", + version="0.1", + description="python-ebml", + author="Joseph Spiros", + url="https://github.com/jspiros/python-ebml", + packages=['ebml', 'ebml.tests', 'ebml.utils', 'ebml.schema'], + classifiers = [ + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], +) + From 9e6cda68c60c776b6ce273e55a1f81a44174d4d0 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 12 Jul 2013 12:08:53 +0200 Subject: [PATCH 2/2] use setuptools find_packages and install schema/matroska.xml --- setup.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 77b7980..d99e716 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,7 @@ #!/usr/bin/env python # vi:si:et:sw=4:sts=4:ts=4 # encoding: utf-8 -try: - from setuptools import setup -except: - from distutils.core import setup +from setuptools import setup, find_packages setup( name="ebml", @@ -12,7 +9,9 @@ description="python-ebml", author="Joseph Spiros", url="https://github.com/jspiros/python-ebml", - packages=['ebml', 'ebml.tests', 'ebml.utils', 'ebml.schema'], + packages=find_packages(), + include_package_data=True, + package_data = { '': [ '*.xml' ] }, classifiers = [ 'Operating System :: OS Independent', 'Programming Language :: Python',