Makefile
changeset 21 5c0a6affeafa
parent 19 4cd3af22787e
child 22 07ad3ba42d39
child 23 ddac0d77cb11
equal deleted inserted replaced
20:e3306f5d0b89 21:5c0a6affeafa
   153 pysite = $(pydir)/Lib/site-packages
   153 pysite = $(pydir)/Lib/site-packages
   154 
   154 
   155 python: |build
   155 python: |build
   156 	rm -rf $(pydir)
   156 	rm -rf $(pydir)
   157 	mkdir -p $(pydir)
   157 	mkdir -p $(pydir)
       
   158 
   158 	# Python
   159 	# Python
   159 	$(call get_src_http,http://www.python.org/ftp/python/2.7.2,python-2.7.2.msi)\
   160 	$(call get_src_http,http://www.python.org/ftp/python/2.7.2,python-2.7.2.msi)\
   160 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   161 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   161 	
   162 
   162 	# WxPython (needs running inno unpacker in wine)
   163 	# WxPython (needs running inno unpacker in wine)
   163 	$(call get_src_sf,innounp/innounp/innounp%200.36,innounp036.rar)\
   164 	$(call get_src_sf,innounp/innounp/innounp%200.36,innounp036.rar)\
   164 	unrar e $$dld innounp.exe $(tmp)
   165 	unrar e $$dld innounp.exe $(tmp)
   165 	$(call get_src_sf,wxpython/wxPython/2.8.12.1,wxPython2.8-win32-unicode-2.8.12.1-py27.exe)\
   166 	$(call get_src_sf,wxpython/wxPython/2.8.12.1,wxPython2.8-win32-unicode-2.8.12.1-py27.exe)\
   166 	$(wine) $(tmp)/innounp.exe -d$(tmp) -x $$dld
   167 	$(wine) $(tmp)/innounp.exe -d$(tmp) -x $$dld
   167 	cp -R $(tmp)/\{code_GetPythonDir\}/* $(pydir)
   168 	cp -R $(tmp)/\{code_GetPythonDir\}/* $(pydir)
   168 	cp -R $(tmp)/\{app\}/* $(pysite)
   169 	cp -R $(tmp)/\{app\}/* $(pysite)
   169 	
   170 
   170 	# wxPython fails if VC9.0 bullshit is not fully here.
   171 	# wxPython fails if VC9.0 bullshit is not fully here.
   171 	$(call get_src_http,http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140,vcredist_x86.exe)\
   172 	$(call get_src_http,http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140,vcredist_x86.exe)\
   172 	cp $$dld $(tmp)
   173 	cp $$dld $(tmp)
   173 	$(wine) $(tmp)/vcredist_x86.exe /qn /a
   174 	$(wine) $(tmp)/vcredist_x86.exe /qn /a
   174 	cp $(tmp)/drive_c/windows/winsxs/x86_Microsoft.VC90.CRT*/* $(pydir)
   175 	cp $(tmp)/drive_c/windows/winsxs/x86_Microsoft.VC90.CRT*/* $(pydir)
   175 
   176 
   176 	# MathPlotLib
   177 	# MathPlotLib
   177 	$(call get_src_http,https://github.com/downloads/matplotlib/matplotlib,matplotlib-1.2.0.win32-py2.7.exe)\
   178 	$(call get_src_http,https://github.com/downloads/matplotlib/matplotlib,matplotlib-1.2.0.win32-py2.7.exe)\
   178 	unzip -d $(tmp)/mathplotlib $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   179 	unzip -d $(tmp)/mathplotlib $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   179 	cp -R $(tmp)/mathplotlib/PLATLIB/* $(pysite)
   180 	cp -R $(tmp)/mathplotlib/PLATLIB/* $(pysite)
   180 	
   181 
   181 	# pywin32
   182 	# pywin32
   182 	$(call get_src_sf,pywin32/pywin32/Build216,pywin32-216.win32-py2.7.exe)\
   183 	$(call get_src_sf,pywin32/pywin32/Build216,pywin32-216.win32-py2.7.exe)\
   183 	unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   184 	unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   184 	cp -R $(tmp)/pw32/PLATLIB/* $(pysite)
   185 	cp -R $(tmp)/pw32/PLATLIB/* $(pysite)
   185 	
   186 
   186 	# zope.interface
   187 	# zope.interface
   187 	$(call get_src_pypi,9d/2d/beb32519c0bd19bda4ac38c34db417d563ee698518e582f951d0b9e5898b,zope.interface-4.3.2-py2.7-win32.egg)\
   188 	$(call get_src_pypi,9d/2d/beb32519c0bd19bda4ac38c34db417d563ee698518e582f951d0b9e5898b,zope.interface-4.3.2-py2.7-win32.egg)\
   188 	unzip -d $(tmp) $$dld
   189 	unzip -d $(tmp) $$dld
   189 	cp -R $(tmp)/zope $(pysite)
   190 	cp -R $(tmp)/zope $(pysite)
   190 	
   191 
   191 	# Twisted
   192 	# Twisted
   192 	$(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\
   193 	$(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\
   193 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   194 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   194 	
   195 
   195 	# Nevow
   196 	# Nevow
   196 	$(call get_src_pypi,source/N/Nevow,Nevow-0.10.0.tar.gz)\
   197 	$(call get_src_pypi,source/N/Nevow,Nevow-0.10.0.tar.gz)\
   197 	tar -C $(tmp) -xzf $$dld
   198 	tar -C $(tmp) -xzf $$dld
   198 	for i in nevow formless twisted; do cp -R $(tmp)/Nevow-0.10.0/$$i $(pysite); done
   199 	for i in nevow formless twisted; do cp -R $(tmp)/Nevow-0.10.0/$$i $(pysite); done
   199 	
   200 
   200 	# Numpy
   201 	# Numpy
   201 	$(call get_src_pypi,2.7/n/numpy,numpy-1.6.1.win32-py2.7.exe)\
   202 	$(call get_src_pypi,2.7/n/numpy,numpy-1.6.1.win32-py2.7.exe)\
   202 	unzip -d $(tmp)/np $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   203 	unzip -d $(tmp)/np $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   203 	cp -R $(tmp)/np/PLATLIB/* $(pysite)
   204 	cp -R $(tmp)/np/PLATLIB/* $(pysite)
   204 	
   205 
   205 	# SimpleJson
   206 	# SimpleJson
   206 	$(call get_src_pypi,source/s/simplejson,simplejson-2.2.1.tar.gz)\
   207 	$(call get_src_pypi,source/s/simplejson,simplejson-2.2.1.tar.gz)\
   207 	tar -C $(tmp) -xzf $$dld
   208 	tar -C $(tmp) -xzf $$dld
   208 	cp -R $(tmp)/simplejson-2.2.1/simplejson/ $(pysite)
   209 	cp -R $(tmp)/simplejson-2.2.1/simplejson/ $(pysite)
   209 	
   210 
       
   211 	# Zeroconf
       
   212 	$(call get_src_pypi,6b/88/48dbe88b10098f98acef33218763c5630b0081c7fd0849ab4793b1e9b6d3,zeroconf-0.19.1-py2.py3-none-any.whl)\
       
   213 	unzip -d $(tmp)/zeroconf $$dld
       
   214 	cp -R $(tmp)/zeroconf/* $(pysite)
       
   215 
       
   216 	# Enum34
       
   217 	$(call get_src_pypi,c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050,enum34-1.1.6-py2-none-any.whl)\
       
   218 	unzip -d $(tmp)/enum34 $$dld
       
   219 	cp -R $(tmp)/enum34/* $(pysite)	
       
   220 
       
   221 	# netifaces
       
   222 	$(call get_src_pypi,05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129,netifaces-0.10.6-py2.7-win32.egg)\
       
   223 	unzip -d $(tmp)/netifaces $$dld
       
   224 	cp -R $(tmp)/netifaces/* $(pysite)	
       
   225 
       
   226 	# Six
       
   227 	$(call get_src_pypi,67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a,six-1.11.0-py2.py3-none-any.whl)\
       
   228 	unzip -d $(tmp)/six $$dld
       
   229 	cp -R $(tmp)/six/* $(pysite)	
       
   230 
       
   231 
   210 	# WxGlade
   232 	# WxGlade
   211 
       
   212 	$(call get_src_http,https://bitbucket.org/wxglade/wxglade/get,034d891cc947.zip)\
   233 	$(call get_src_http,https://bitbucket.org/wxglade/wxglade/get,034d891cc947.zip)\
   213 	unzip -d $(tmp) $$dld
   234 	unzip -d $(tmp) $$dld
   214 	mv $(tmp)/wxglade-wxglade-034d891cc947 $(pysite)/wxglade
   235 	mv $(tmp)/wxglade-wxglade-034d891cc947 $(pysite)/wxglade
   215 	
   236 
   216 	# Pyro
   237 	# Pyro
   217 	$(call get_src_pypi,source/P/Pyro,Pyro-3.9.1.tar.gz)\
   238 	$(call get_src_pypi,source/P/Pyro,Pyro-3.9.1.tar.gz)\
   218 	tar -C $(tmp) -xzf $$dld
   239 	tar -C $(tmp) -xzf $$dld
   219 	mv $(tmp)/Pyro-3.9.1/Pyro $(pysite)
   240 	mv $(tmp)/Pyro-3.9.1/Pyro $(pysite)
   220 	
   241 
   221 	# Lxml
   242 	# Lxml
   222 	$(call get_src_pypi,2.7/l/lxml,lxml-3.2.3.win32-py2.7.exe)\
   243 	$(call get_src_pypi,2.7/l/lxml,lxml-3.2.3.win32-py2.7.exe)\
   223 	unzip -d $(tmp)/lxml $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   244 	unzip -d $(tmp)/lxml $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   224 	cp -R $(tmp)/lxml/PLATLIB/* $(pysite)
   245 	cp -R $(tmp)/lxml/PLATLIB/* $(pysite)
   225 
   246