From 23e620a0d5c2f0a12f1f40d03ef3597a4e27b629 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Jun 2012 09:12:16 +0530 Subject: [PATCH] Update the version of ipython in the OS X build --- setup/installer/osx/app/main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup/installer/osx/app/main.py b/setup/installer/osx/app/main.py index 2cf7e1df48..96edbc2c8f 100644 --- a/setup/installer/osx/app/main.py +++ b/setup/installer/osx/app/main.py @@ -482,6 +482,10 @@ class Py2App(object): shutil.rmtree(tdir) shutil.rmtree(os.path.join(self.site_packages, 'calibre', 'plugins')) self.remove_bytecode(join(self.resources_dir, 'Python', 'site-packages')) + # Create dummy IPython README_STARTUP + with open(join(self.site_packages, + 'IPython/config/profile/README_STARTUP'), 'wb') as f: + f.write('\n') @flush def add_modules_from_dir(self, src): @@ -551,6 +555,15 @@ class Py2App(object): if dest2.endswith('.so'): self.fix_dependencies_in_lib(dest2) self.remove_bytecode(join(self.resources_dir, 'Python', 'lib')) + confdir = join(self.resources_dir, 'Python', + 'lib/python%s/config'%self.version_info) + os.makedirs(confdir) + shutil.copy2(join(src, 'config/Makefile'), confdir) + incdir = join(self.resources_dir, 'Python', + 'include/python'+self.version_info) + os.makedirs(incdir) + shutil.copy2(join(src.replace('/lib/', '/include/'), 'pyconfig.h'), + incdir) @flush def remove_bytecode(self, dest):