File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
os : Windows Server 2012
2
2
3
- environment :
4
- global :
5
- PYTHONPATH : c:\testdir
6
-
7
- matrix :
3
+ matrix :
8
4
- pythonurl : http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
9
5
- pythonurl : http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi
10
6
- pythonurl : http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
@@ -25,7 +21,5 @@ build_script:
25
21
26
22
test_script :
27
23
- ps : C:\python\scripts\pip.exe install ("dist\" + (gci dist)[0].Name)
28
- - mkdir c:\testdir
29
- - ps : copy-item (gci -path build -re -include Python.Test.dll)[0].FullName c:\testdir
30
24
- c:\python\python.exe src\tests\runtests.py
31
25
- c:\python\scripts\npython.exe src\tests\runtests.py
Original file line number Diff line number Diff line change @@ -242,16 +242,17 @@ class PythonNET_InstallData(install_data):
242
242
def run (self ):
243
243
build_cmd = self .get_finalized_command ("build_ext" )
244
244
install_lib_cmd = self .get_finalized_command ("install_lib" )
245
+ build_dir = os .path .abspath (build_cmd .build_lib )
246
+ install_dir = os .path .abspath (install_lib_cmd .install_dir )
245
247
246
248
for i , data_files in enumerate (self .data_files ):
247
249
if isinstance (data_files , str ):
248
- self .data_files [i ] = data_files [i ].replace ("BUILD_DIR" , build_cmd . build_lib )
250
+ self .data_files [i ] = data_files [i ].replace ("BUILD_DIR" , build_dir )
249
251
else :
250
252
for j , filename in enumerate (data_files [1 ]):
251
- data_files [1 ][j ] = filename .replace ("BUILD_DIR" , build_cmd . build_lib )
252
- dest = data_files [0 ].replace ("INSTALL_DIR" , install_lib_cmd . install_dir )
253
+ data_files [1 ][j ] = filename .replace ("BUILD_DIR" , build_dir )
254
+ dest = data_files [0 ].replace ("INSTALL_DIR" , install_dir )
253
255
self .data_files [i ] = dest , data_files [1 ]
254
- print (self .data_files )
255
256
256
257
return install_data .run (self )
257
258
You can’t perform that action at this time.
0 commit comments