Changeset 7768d11


Ignore:
Timestamp:
Oct 31, 2011 1:43:35 PM (3 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, crem3, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, prob, production, release/1.4.4, sabiod, search, security, server, social, storage, telecaster, test, video
Children:
d407f46
Parents:
fbe66b2
git-author:
yomguy <yomguy@…> (31/10/2011 13:43:35)
git-committer:
yomguy <yomguy@…> (31/10/2011 13:43:35)
Message:

fix setup

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    ra3e2afc r7768d11  
    11# -*- coding: utf-8 -*- 
    2 from distutils.core import setup 
    3 from distutils.command.install import INSTALL_SCHEMES 
     2from setuptools import setup, find_packages 
    43import os 
    5 import sys 
     4import telemeta 
    65 
    7 def fullsplit(path, result=None): 
    8     """ 
    9     Split a pathname into components (the opposite of os.path.join) in a 
    10     platform-neutral way. 
    11     """ 
    12     if result is None: 
    13         result = [] 
    14     head, tail = os.path.split(path) 
    15     if head == '': 
    16         return [tail] + result 
    17     if head == path: 
    18         return result 
    19     return fullsplit(head, [tail] + result) 
    20  
    21 # Tell distutils to put the data_files in platform-specific installation 
    22 # locations. See here for an explanation: 
    23 # http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb 
    24 for scheme in INSTALL_SCHEMES.values(): 
    25     scheme['data'] = scheme['purelib'] 
    26  
    27 # Compile the list of packages available, because distutils doesn't have 
    28 # an easy way to do this. 
    29 packages, data_files = [], [] 
    30 root_dir = os.path.dirname(__file__) 
    31 if root_dir != '': 
    32     os.chdir(root_dir) 
    33 telemeta_dir = 'telemeta' 
    34  
    35 for dirpath, dirnames, filenames in os.walk(telemeta_dir): 
    36     # Ignore dirnames that start with '.' 
    37     for i, dirname in enumerate(dirnames): 
    38         if dirname.startswith('.'): del dirnames[i] 
    39     if '__init__.py' in filenames: 
    40         packages.append('.'.join(fullsplit(dirpath))) 
    41     elif filenames: 
    42         data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) 
    43  
    44 # Dynamically calculate the version based on telemeta.VERSION. 
    45 version = __import__('telemeta').__version__ 
     6CLASSIFIERS = ['Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Science/Research', 'Intended Audience :: Education', 'Programming Language :: Python', 'Programming Language :: JavaScript', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Analysis', 'Topic :: Multimedia :: Sound/Audio :: Players', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: System :: Archiving',  ] 
    467 
    478setup( 
    489  name = "Telemeta", 
    4910  url = "http://telemeta.org", 
    50   description = "Web Audio Content Management System", 
     11  description = "a web Audio Content Management System", 
     12  long_description = open('README.rst').read(),  
    5113  author = ["Guillaume Pellerin", "Olivier Guilyardi", "Riccardo Zaccarelli"], 
    5214  author_email = ["yomguy@parisson.com","olivier@samalyse.com", "riccardo.zaccarelli@gmail.com"], 
    53   version = version, 
    54   packages = packages, 
    55   data_files = data_files, 
    56   intall_requires = ['timeside'], 
    57   classifiers = ['Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Science/Research', 'Intended Audience :: Education', 'Programming Language :: Python', 'Programming Language :: JavaScript', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Analysis', 'Topic :: Multimedia :: Sound/Audio :: Players', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: System :: Archiving',  ],  
    58   long_description = open('README.rst').read() 
    59   ) 
     15  version = telemeta.__version__, 
     16  install_requires = [ 
     17        'timeside',  
     18        'Django>=1.2.5', 
     19  ], 
     20  platforms=['OS Independent'], 
     21  license='CeCILL v2', 
     22  classifiers = CLASSIFIERS,  
     23  packages = find_packages(), 
     24  include_package_data = True, 
     25  zip_safe = False,  
     26) 
Note: See TracChangeset for help on using the changeset viewer.