##// END OF EJS Templates
Make installation with Python 3 possible.
Thomas Kluyver -
Show More
@@ -0,0 +1,9 b''
1 import os.path
2 from setuptools import setup
3
4 from setupbase import (setup_args, find_scripts, find_packages)
5
6 setup_args['entry_points'] = find_scripts(True)
7 setup_args['packages'] = find_packages()
8
9 setup(use_2to3 = True, **setup_args)
@@ -23,7 +23,10 b' from __future__ import print_function'
23 import os
23 import os
24 import sys
24 import sys
25
25
26 from ConfigParser import ConfigParser
26 try:
27 from configparser import ConfigParser
28 except:
29 from ConfigParser import ConfigParser
27 from distutils.command.build_py import build_py
30 from distutils.command.build_py import build_py
28 from glob import glob
31 from glob import glob
29
32
@@ -40,6 +43,13 b' pjoin = os.path.join'
40 def oscmd(s):
43 def oscmd(s):
41 print(">", s)
44 print(">", s)
42 os.system(s)
45 os.system(s)
46
47 try:
48 execfile
49 except NameError:
50 def execfile(fname, globs, locs=None):
51 locs = locs or globs
52 exec(compile(open(fname).read(), fname, "exec"), globs, locs)
43
53
44 # A little utility we'll need below, since glob() does NOT allow you to do
54 # A little utility we'll need below, since glob() does NOT allow you to do
45 # exclusion on multiple endings!
55 # exclusion on multiple endings!
@@ -58,7 +68,7 b' def file_doesnt_endwith(test,endings):'
58 #---------------------------------------------------------------------------
68 #---------------------------------------------------------------------------
59
69
60 # release.py contains version, authors, license, url, keywords, etc.
70 # release.py contains version, authors, license, url, keywords, etc.
61 execfile(pjoin('IPython','core','release.py'))
71 execfile(pjoin('IPython','core','release.py'), globals())
62
72
63 # Create a dict with the basic information
73 # Create a dict with the basic information
64 # This dict is eventually passed to setup after additional keys are added.
74 # This dict is eventually passed to setup after additional keys are added.
@@ -1,3 +1,3 b''
1 # load extended setup modules for distuils
1 # load extended setup modules for distuils
2
2
3 from install_data_ext import install_data_ext
3 from .install_data_ext import install_data_ext
General Comments 0
You need to be logged in to leave comments. Login now