##// 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,6 +23,9 b' from __future__ import print_function'
23 23 import os
24 24 import sys
25 25
26 try:
27 from configparser import ConfigParser
28 except:
26 29 from ConfigParser import ConfigParser
27 30 from distutils.command.build_py import build_py
28 31 from glob import glob
@@ -41,6 +44,13 b' def oscmd(s):'
41 44 print(">", s)
42 45 os.system(s)
43 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)
53
44 54 # A little utility we'll need below, since glob() does NOT allow you to do
45 55 # exclusion on multiple endings!
46 56 def file_doesnt_endwith(test,endings):
@@ -58,7 +68,7 b' def file_doesnt_endwith(test,endings):'
58 68 #---------------------------------------------------------------------------
59 69
60 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 73 # Create a dict with the basic information
64 74 # This dict is eventually passed to setup after additional keys are added.
@@ -1,3 +1,3 b''
1 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