forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup3.py
31 lines (20 loc) · 909 Bytes
/
setup3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3.3
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
# This is a temporary helper to be able to build and install distributions of
# Twisted on/for Python 3. Once all of Twisted has been ported, it should go
# away and setup.py should work for either Python 2 or Python 3.
from __future__ import division, absolute_import
import sys, os.path
sys.path.insert(0, '.')
from distutils.core import setup
from twisted.python.dist import STATIC_PACKAGE_METADATA
args = STATIC_PACKAGE_METADATA.copy()
args['classifiers'] = ["Programming Language :: Python :: 3.3"]
ported = {}
exec(open("admin/_twistedpython3.py").read(), ported)
args['py_modules'] = ported['modules'] + ported['testModules'] + ported['almostModules']
if 'sdist' in sys.argv:
args['data_files'] = [
('admin', ['admin/_twistedpython3.py', 'admin/run-python3-tests'])]
setup(**args)