forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Author: exarkun Reviewer: itamarst Fixes: twisted#6040 Add `setup3.py` script which can package and install a subset of Twisted on Python 3. git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@36198 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
- Loading branch information
Showing
6 changed files
with
96 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The setup3.py script is now provided to provisionally support building and installing an experimental, incomplete version of Twisted in a Python 3 environment. |