Changeset 14146
- Timestamp:
- 04/18/12 17:42:20 (12 years ago)
- Location:
- trunk/sara_cmt
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/cmt.py
r14137 r14146 1 #!/ data/virtualenvs/cmtdev/bin/python1 #!/usr/bin/python 2 2 3 3 ##### -
trunk/sara_cmt/setup.py
r14145 r14146 35 35 36 36 37 # http://docs.python.org/distutils/setupscript.html#listing-whole-packages 37 38 # The packages option tells the Distutils to process (build, distribute, install, etc.) all pure Python modules found in each package mentioned in the packages list. In order to do this, of course, there has to be a correspondence between package names and directories in the filesystem. The default correspondence is the most obvious one, i.e. package distutils is found in the directory distutils relative to the distribution root. Thus, when you say packages = ['foo'] in your setup script, you are promising that the Distutils will find a file foo/__init__.py (which might be spelled differently on your system, but you get the idea) relative to the directory where your setup script lives. 38 39 # 39 packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'], 40 packages = ['', 'sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'], 41 #packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'], 40 42 43 # http://docs.python.org/distutils/setupscript.html#listing-individual-modules 41 44 # This describes two modules, one of them in the "root" package, the other in the pkg package. Again, the default package/directory layout implies that these two modules can be found in mod1.py and pkg/mod2.py, and that pkg/__init__.py exists as well. 42 45 # 43 46 # py_modules = ['mod1', 'pkg.mod2'], 47 #py_modules = ['cmt.py'], 44 48 49 # http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages 45 50 # Dependencies on other Python modules and packages can be specified by supplying the requires keyword argument to setup(). The value must be a list of strings. Each string specifies a package that is required, and optionally what versions are sufficient. 46 51 # 47 52 requires = ['Django (>=1.2)', 'IPy (>=0.75)', 'django_extensions (>=0.4)', 'django_tagging (>=0.3.1)', 'psycopg2 (>=2.4.4)', 'Python (>=2.6)'], 53 #provides 54 #obsoletes 48 55 56 # http://docs.python.org/distutils/setupscript.html#installing-scripts 57 # 58 #scripts = ['cmt.py'], 59 #scripts = ['cmt', 'cmt.py'], 60 61 # http://docs.python.org/distutils/setupscript.html#installing-package-data 62 # Often, additional files need to be installed into a package. These files are often data that's closely related to the package's implementation, or text files containing documentation that might be of interest to programmers using the package. These files are called package data. 63 #package_data = {'': ['cmt', 'cmt.py'],}, 64 package_dir = {'sara_cmt': 'sara_cmt'}, 65 package_data = {'sara_cmt': ['apache/django.wsgi']}, 49 66 ) 50 67 #setup( … … 52 69 # #maintainer_email = '' 53 70 # 54 # scripts = ['cmt'],55 71 # data_files = [('config', ['config/cmt.cfg'])], 56 72 #)
Note: See TracChangeset
for help on using the changeset viewer.