annotate setup.py @ 0:cf72635e9572 default tip

install a file to site-packages
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 31 Aug 2011 13:49:42 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 import os
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 from setuptools import setup
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 try:
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 here = os.path.dirname(os.path.abspath(__file__))
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 description = file(os.path.join(here, 'README.txt')).read()
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 except IOError:
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 description = None
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 version = '0.0'
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 deps = []
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 setup(name='installfile',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 version=version,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 description="install a single file python thingy to sys.path",
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 long_description=description,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 keywords='mozilla',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 author='Jeff Hammel',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 author_email='jhammel@mozilla.com',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 url='http://k0s.org/mozilla/hg/installfile',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 license='',
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 py_modules=['installfile'],
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 packages=[],
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 include_package_data=True,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 zip_safe=False,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 install_requires=deps,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 entry_points="""
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 # -*- Entry points: -*-
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 [console_scripts]
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 installfile = installfile:main
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 """,
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 )
cf72635e9572 install a file to site-packages
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35