Changeset 14146


Ignore:
Timestamp:
04/18/12 17:42:20 (12 years ago)
Author:
sil
Message:

Seems I have a working setup.py and MANIFEST.in for a client package. See #11

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/python
     1#!/usr/bin/python
    22
    33#####
  • trunk/sara_cmt/setup.py

    r14145 r14146  
    3535
    3636
     37# http://docs.python.org/distutils/setupscript.html#listing-whole-packages
    3738# 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.
    3839#
    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'],
    4042
     43# http://docs.python.org/distutils/setupscript.html#listing-individual-modules
    4144# 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.
    4245#
    4346#    py_modules = ['mod1', 'pkg.mod2'],
     47    #py_modules = ['cmt.py'],
    4448
     49# http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
    4550# 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.
    4651#
    4752    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
    4855
     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']},
    4966)
    5067#setup(
     
    5269#    #maintainer_email = ''
    5370#
    54 #    scripts = ['cmt'],
    5571#    data_files = [('config', ['config/cmt.cfg'])],
    5672#)
Note: See TracChangeset for help on using the changeset viewer.