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 1313"""
1414"""Build helper."""
1515
16- from future import standard_library
17- standard_library .install_aliases ()
18-
1916import os
2017from glob import glob
2118import sys
Original file line number Diff line number Diff line change 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
87from setuptools import setup
98
109################################################################################
1716
1817
1918if __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