Changeset 328 for pyyaml/trunk/setup.py
- Timestamp:
- 12/29/08 12:24:05 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/setup.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/setup.py
r326 r328 32 32 "Programming Language :: Python :: 2.5", 33 33 "Programming Language :: Python :: 2.6", 34 # Python 3.0 is not yet supported, but see http://pyyaml.org/ticket/74 35 # "Programming Language :: Python :: 3", 36 # "Programming Language :: Python :: 3.0", 34 "Programming Language :: Python :: 3", 35 "Programming Language :: Python :: 3.0", 37 36 "Topic :: Software Development :: Libraries :: Python Modules", 38 37 "Topic :: Text Processing :: Markup", … … 157 156 try: 158 157 _build_ext.run(self) 159 except DistutilsPlatformError, exc: 158 except DistutilsPlatformError: 159 exc = sys.exc_info()[1] 160 160 if optional: 161 161 log.warn(str(exc)) … … 288 288 build_cmd.run() 289 289 sys.path.insert(0, build_cmd.build_lib) 290 sys.path.insert(0, 'tests') 290 if sys.version_info[0] < 3: 291 sys.path.insert(0, 'tests') 292 else: 293 sys.path.insert(0, 'tests3') 291 294 import test_all 292 295 test_all.main([]) … … 295 298 if __name__ == '__main__': 296 299 297 setup( 298 name=NAME, 299 version=VERSION, 300 description=DESCRIPTION, 301 long_description=LONG_DESCRIPTION, 302 author=AUTHOR, 303 author_email=AUTHOR_EMAIL, 304 license=LICENSE, 305 platforms=PLATFORMS, 306 url=URL, 307 download_url=DOWNLOAD_URL, 308 classifiers=CLASSIFIERS, 309 310 package_dir={'': 'lib'}, 311 packages=['yaml'], 312 ext_modules=[ 313 Extension('_yaml', ['ext/_yaml.pyx'], 314 'libyaml', "LibYAML bindings", LIBYAML_CHECK, 315 libraries=['yaml']), 316 ], 317 318 distclass=Distribution, 319 cmdclass={ 320 'build_ext': build_ext, 321 'bdist_rpm': bdist_rpm, 322 'test': test, 323 }, 324 ) 325 300 if sys.version_info[0] < 3: 301 302 setup( 303 name=NAME, 304 version=VERSION, 305 description=DESCRIPTION, 306 long_description=LONG_DESCRIPTION, 307 author=AUTHOR, 308 author_email=AUTHOR_EMAIL, 309 license=LICENSE, 310 platforms=PLATFORMS, 311 url=URL, 312 download_url=DOWNLOAD_URL, 313 classifiers=CLASSIFIERS, 314 315 package_dir={'': 'lib'}, 316 packages=['yaml'], 317 ext_modules=[ 318 Extension('_yaml', ['ext/_yaml.pyx'], 319 'libyaml', "LibYAML bindings", LIBYAML_CHECK, 320 libraries=['yaml']), 321 ], 322 323 distclass=Distribution, 324 cmdclass={ 325 'build_ext': build_ext, 326 'bdist_rpm': bdist_rpm, 327 'test': test, 328 }, 329 ) 330 331 else: 332 333 setup( 334 name=NAME, 335 version=VERSION, 336 description=DESCRIPTION, 337 long_description=LONG_DESCRIPTION, 338 author=AUTHOR, 339 author_email=AUTHOR_EMAIL, 340 license=LICENSE, 341 platforms=PLATFORMS, 342 url=URL, 343 download_url=DOWNLOAD_URL, 344 classifiers=CLASSIFIERS, 345 346 package_dir={'': 'lib3'}, 347 packages=['yaml'], 348 349 cmdclass={ 350 'test': test, 351 }, 352 ) 353
Note: See TracChangeset
for help on using the changeset viewer.
