File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 13
13
"""
14
14
"""Build helper."""
15
15
16
- from future import standard_library
17
- standard_library .install_aliases ()
18
-
19
16
import os
20
17
from glob import glob
21
18
import sys
Original file line number Diff line number Diff line change 3
3
# vi: set ft=python sts=4 ts=4 sw=4 et:
4
4
"""Wrapper to run setup.py using setuptools."""
5
5
6
- from past .builtins import execfile
7
-
6
+ import os .path
8
7
from setuptools import setup
9
8
10
9
################################################################################
17
16
18
17
19
18
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 ))
You can’t perform that action at this time.
0 commit comments