Commit ff4be137 authored by Jérome Perrin's avatar Jérome Perrin

Reorganize timerserver python package to stop hardcoding...

Reorganize timerserver python package to stop hardcoding "./lib/python%s.%s/site-packages/%s'%(sys.version_info[0]"  and be setuptools compatible.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21079 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7080efca
modname = 'timerserver'
version = open('version.txt').read().strip()
numversion = version.split('.')
license = 'GPL'
copyright = '''Nikolay Kim (c) 2004'''
author = "Nikolay Kim"
author_email = "fafhrd@legco.biz"
short_desc = "Timer Server for Zope"
long_desc = short_desc
web = ""
ftp = ""
mailing_list = ""
modname = 'timerserver'
version = open('version.txt').read().strip()
numversion = version.split('.')
license = 'GPL'
copyright = '''Nikolay Kim (c) 2004'''
author = "Nikolay Kim"
author_email = "fafhrd@legco.biz"
short_desc = "Timer Server for Zope"
long_desc = short_desc
web = ""
ftp = ""
mailing_list = ""
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
from distutils import util try:
from distutils.core import setup, Extension from setuptools import setup
except ImportError:
from __pkginfo__ import modname, version, license, short_desc, long_desc,\ from distutils.core import setup
web, author, author_email
if __name__ == '__main__' : setup(name='timerserver',
dist = setup(name = modname, version='2.0',
version = version, license='GPL',
license =license, description='Timer Server for Zope',
description = short_desc, long_description='',
long_description = long_desc, author='Nikolay Kim',
author = author, author_email='fafhrd@legco.biz',
author_email = author_email, packages=['timerserver'],
url = web, zip_safe=False,
package_dir = {modname: '.'}, package_data={'timerserver': ['component.xml']},
packages = [modname,],
data_files = [
('./lib/python%s.%s/site-packages/%s'%(sys.version_info[0], sys.version_info[1], modname),
['component.xml'])]
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment