equal
deleted
inserted
replaced
47 with io.open('README', encoding='utf-8') as f: |
47 with io.open('README', encoding='utf-8') as f: |
48 long_description = f.read() |
48 long_description = f.read() |
49 |
49 |
50 # import optional features |
50 # import optional features |
51 distname = __pkginfo__['distname'] |
51 distname = __pkginfo__['distname'] |
52 scripts = __pkginfo__['scripts'] |
|
53 data_files = __pkginfo__['data_files'] |
52 data_files = __pkginfo__['data_files'] |
54 package_data = __pkginfo__['package_data'] |
53 package_data = __pkginfo__['package_data'] |
55 |
|
56 |
|
57 def ensure_scripts(linux_scripts): |
|
58 """ |
|
59 Creates the proper script names required for each platform |
|
60 (taken from 4Suite) |
|
61 """ |
|
62 from distutils import util |
|
63 if util.get_platform()[:3] == 'win': |
|
64 scripts_ = [script + '.bat' for script in linux_scripts] |
|
65 else: |
|
66 scripts_ = linux_scripts |
|
67 return scripts_ |
|
68 |
54 |
69 |
55 |
70 def get_packages(directory, prefix): |
56 def get_packages(directory, prefix): |
71 """return a list of subpackages for the given directory |
57 """return a list of subpackages for the given directory |
72 """ |
58 """ |
121 long_description=long_description, |
107 long_description=long_description, |
122 author=author, |
108 author=author, |
123 author_email=author_email, |
109 author_email=author_email, |
124 packages=[modname] + get_packages(join(here, modname), modname), |
110 packages=[modname] + get_packages(join(here, modname), modname), |
125 package_data=package_data, |
111 package_data=package_data, |
126 scripts=ensure_scripts(scripts), |
|
127 data_files=data_files, |
112 data_files=data_files, |
128 include_package_data=True, |
113 include_package_data=True, |
129 install_requires=[ |
114 install_requires=[ |
130 'six >= 1.4.0', |
115 'six >= 1.4.0', |
131 'logilab-common >= 1.4.0', |
116 'logilab-common >= 1.4.0', |
138 'pytz', |
123 'pytz', |
139 'Markdown', |
124 'Markdown', |
140 'unittest2 >= 0.7.0', |
125 'unittest2 >= 0.7.0', |
141 ], |
126 ], |
142 entry_points={ |
127 entry_points={ |
|
128 'console_scripts': [ |
|
129 'cubicweb-ctl = cubicweb.cwctl:run', |
|
130 ], |
143 'paste.app_factory': [ |
131 'paste.app_factory': [ |
144 'pyramid_main=cubicweb.pyramid:pyramid_app', |
132 'pyramid_main=cubicweb.pyramid:pyramid_app', |
145 ], |
133 ], |
146 }, |
134 }, |
147 extras_require={ |
135 extras_require={ |