equal
deleted
inserted
replaced
129 |
129 |
130 #patch for linux |
130 #patch for linux |
131 if system_str == 'Linux' : |
131 if system_str == 'Linux' : |
132 olddir = os.getcwd() |
132 olddir = os.getcwd() |
133 patch_dest_path = os.path.join(lib_dir,'site-packages','setuptools-0.6c11-py'+'%s.%s' % (sys.version_info[0], sys.version_info[1])+'.egg') |
133 patch_dest_path = os.path.join(lib_dir,'site-packages','setuptools-0.6c11-py'+'%s.%s' % (sys.version_info[0], sys.version_info[1])+'.egg') |
|
134 if os.path.isfile(patch_dest_path): |
|
135 # must unzip egg |
|
136 # rename file and etract all |
|
137 shutil.move(patch_dest_path, patch_dest_path + ".zip") |
|
138 zf = zipfile.ZipFile(patch_dest_path + ".zip",'r') |
|
139 zf.extractall(patch_dest_path) |
|
140 os.remove(patch_dest_path + ".zip") |
|
141 |
134 logger.notify("Patch jcc : %s " % (patch_dest_path)) |
142 logger.notify("Patch jcc : %s " % (patch_dest_path)) |
135 os.chdir(patch_dest_path) |
143 os.chdir(patch_dest_path) |
136 p = patch.fromfile(os.path.join(jcc_src_path,"jcc","patches","patch.43.0.6c11")) |
144 p = patch.fromfile(os.path.join(jcc_src_path,"jcc","patches","patch.43.0.6c11")) |
137 p.apply() |
145 p.apply() |
138 os.chdir(olddir) |
146 os.chdir(olddir) |
164 destination.write("NUM_FILES=2\\n") |
172 destination.write("NUM_FILES=2\\n") |
165 elif system_str == "Windows": |
173 elif system_str == "Windows": |
166 destination.write("JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64 --arch i386\\n") |
174 destination.write("JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64 --arch i386\\n") |
167 destination.write("NUM_FILES=2\\n") |
175 destination.write("NUM_FILES=2\\n") |
168 else: |
176 else: |
169 destination.write("JCC=$(PYTHON) -m jcc --shared\\n") |
177 if sys.version_info >= (2,6) and sys.version_info < (2,7): |
|
178 destination.write("JCC=$(PYTHON) -m jcc.__main__ --shared\\n") |
|
179 else: |
|
180 destination.write("JCC=$(PYTHON) -m jcc --shared\\n") |
170 destination.write("NUM_FILES=2\\n") |
181 destination.write("NUM_FILES=2\\n") |
171 for line in source: |
182 for line in source: |
172 destination.write( line ) |
183 destination.write( line ) |
173 source.close() |
184 source.close() |
174 destination.close() |
185 destination.close() |