Mercurial > hg > periprocess
annotate setup.py @ 0:d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 30 Nov 2016 12:40:25 -0800 |
parents | |
children | a1b13d024582 |
rev | line source |
---|---|
0
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
1 """ |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
2 setup packaging script for periprocess |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
3 """ |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
5 import os |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
6 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
7 version = "0.0" |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
8 dependencies = [] |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
9 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
10 # allow use of setuptools/distribute or distutils |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
11 kw = {} |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
12 try: |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
13 from setuptools import setup |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
14 kw['entry_points'] = """ |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
15 [console_scripts] |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
16 periprocess = periprocess.main:main |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
17 periprocess-template = periprocess.template:main |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
18 """ |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
19 kw['install_requires'] = dependencies |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
20 except ImportError: |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
21 from distutils.core import setup |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
22 kw['requires'] = dependencies |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
23 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
24 try: |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
25 here = os.path.dirname(os.path.abspath(__file__)) |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
26 description = file(os.path.join(here, 'README.txt')).read() |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
27 except IOError: |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
28 description = '' |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
29 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
30 |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
31 setup(name='periprocess', |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
32 version=version, |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
33 description="subprocess front-end that keeps buffers of stdout/stderr", |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
34 long_description=description, |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
36 author='Jeff Hammel', |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
37 author_email='k0scist@gmail.com', |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
38 url='http://k0s.org/hg/periprocess', |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
39 license='MPL', |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
40 packages=['periprocess'], |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
41 include_package_data=True, |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
42 zip_safe=False, |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
43 **kw |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
44 ) |
d28351df9a8a
initial commit from http://k0s.org/hg/config/file/tip/python/example/process.py
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
45 |