diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2010-06-11 14:18:43 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2010-06-11 14:18:43 +0200 |
commit | 19c260e63ffe20b5196c8401ed1cb2d7ccf71f7f (patch) | |
tree | 59373c2fa05a1a5b2aa303169cb5b5cdbe3ca940 /plac/setup.py | |
parent | fa41140285817bd1792e46277da7de0d2ee4cf7a (diff) | |
download | micheles-19c260e63ffe20b5196c8401ed1cb2d7ccf71f7f.tar.gz |
Initial commit for release 0.5.0
Diffstat (limited to 'plac/setup.py')
-rw-r--r-- | plac/setup.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plac/setup.py b/plac/setup.py index ca34c5b..0a7ee88 100644 --- a/plac/setup.py +++ b/plac/setup.py @@ -3,18 +3,23 @@ try: except ImportError: from distutils.core import setup import os.path -import plac + +def getversion(fname): + "Get the __version__ without importing plac" + for line in open(fname): + if line.startswith('__version__'): + return eval(line[13:]) if __name__ == '__main__': - setup(name=plac.__name__, - version=plac.__version__, + setup(name='plac', + version=getversion(os.path.join(os.path.dirname(__file__),'plac.py')), description='The easiest command line arguments parser in the world', long_description=open('README.txt').read(), author='Michele Simionato', author_email='michele.simionato@gmail.com', url='http://pypi.python.org/pypi/plac', license="BSD License", - py_modules = ['plac'], + py_modules = ['plac_core', 'plac_ext', 'plac'], install_requires=['argparse>=1.1'], keywords="command line arguments parser", platforms=["All"], |