Changeset 2499
- Timestamp:
- 05/11/12 15:25:52 (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/asap
r2498 r2499 1 1 #!/usr/bin/env python 2 2 import os 3 from asap import *4 3 5 4 def main(): … … 25 24 os.system('clear') 26 25 import IPython 26 from asap import * 27 27 main() 28 28 except ImportError: 29 29 print "No ipython found. Running standard python" 30 from asap import * -
trunk/packaging/setup.py
r2488 r2499 20 20 ''', 21 21 packages = find_packages(), 22 install_requires = ["ipython <=0.10", "matplotlib>=0.99", "numpy>=1.3"],22 install_requires = ["ipython>=0.11", "matplotlib>=0.99", "numpy>=1.3"], 23 23 package_data = {"": ["_asap.so", "data/ipy*"], 24 24 }, 25 scripts = ["bin/asap", "bin/asap 2to3", "bin/asap_update_data"],25 scripts = ["bin/asap", "bin/asap_update_data"], 26 26 license = 'GPL', 27 27 zip_safe = 0, -
trunk/python/env.py
r2090 r2499 51 51 not os.path.exists(os.environ["CASAPATH"].split()[0]+"/data"): 52 52 os.environ["CASAPATH"] = "%s %s somwhere" % ( asapdata, plf) 53 53 54 # set up user space 54 userdir = os.environ["HOME"]+"/.asap" 55 if not os.path.exists(userdir): 56 print 'First time ASAP use. Setting up ~/.asap' 57 os.mkdir(userdir) 58 if not is_casapy(): 59 shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 60 userdir+"/ipy_user_conf.py") 61 f = file(userdir+"/asapuserfuncs.py", "w") 62 f.close() 63 f = file(userdir+"/ipythonrc", "w") 64 f.close() 65 else: 66 if not is_casapy(): 67 # upgrade to support later ipython versions 68 if not os.path.exists(userdir+"/ipy_user_conf.py"): 69 shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 70 userdir+"/ipy_user_conf.py") 55 # userdir = os.environ["HOME"]+"/.asap" 56 # if not os.path.exists(userdir): 57 # print 'First time ASAP use. Setting up ~/.asap' 58 # os.makedirs(os.path.join(userdir, "profile_default")) 59 # if not is_casapy(): 60 # shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 61 # userdir+"/ipy_user_conf.py") 62 # shutil.copyfile(asapdata+"/data/ipython_config.py", 63 # userdir+"/profile_default/ipython_config.py") 64 # f = file(userdir+"/asapuserfuncs.py", "w") 65 # f.close() 66 # f = file(userdir+"/ipythonrc", "w") 67 # f.close() 68 # else: 69 # if not is_casapy(): 70 # # upgrade to support later ipython versions 71 72 # if not os.path.exists(userdir+"/ipy_user_conf.py"): 73 # shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 74 # userdir+"/ipy_user_conf.py") 75 # if not os.path.exists(userdir+"/profile_default/ipython_config.py"): 76 # shutil.copyfile(asapdata+"/data/ipython_config.py", 77 # userdir+"/profile_default/ipython_config.py") 78 71 79 72 80 def get_revision(): -
trunk/python/ipysupport.py
r1824 r2499 7 7 8 8 # workaround for ipython, which redirects this if banner=0 in ipythonrc 9 sys.stdout = sys.__stdout__10 sys.stderr = sys.__stderr__9 #sys.stdout = sys.__stdout__ 10 #sys.stderr = sys.__stderr__ 11 11 12 12 def version():
Note:
See TracChangeset
for help on using the changeset viewer.