Skip to content

Commit 6406ace

Browse files
author
Ben Cipollini
committed
Remove future from setup / setup_egg
1 parent 07d598a commit 6406ace

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"""
1414
"""Build helper."""
1515

16-
from future import standard_library
17-
standard_library.install_aliases()
18-
1916
import os
2017
from glob import glob
2118
import sys

setup_egg.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""Wrapper to run setup.py using setuptools."""
55

6-
from past.builtins import execfile
7-
6+
import os.path
87
from setuptools import setup
98

109
################################################################################
@@ -17,8 +16,8 @@
1716

1817

1918
if __name__ == '__main__':
20-
execfile('setup.py', dict(__name__='__main__',
21-
extra_setuptools_args=extra_setuptools_args))
22-
23-
24-
19+
setup_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'setup.py')
20+
with open(setup_file) as f:
21+
code = compile(f.read(), setup_file, 'exec')
22+
exec(code, dict(__name__='__main__',
23+
extra_setuptools_args=extra_setuptools_args))

0 commit comments

Comments
 (0)