File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1111import glob
1212import os
1313import re
14- import sys
1514import shutil
15+ import sys
1616import warnings
1717
1818from setuptools import Extension , setup
@@ -84,18 +84,20 @@ def get_gsl_config_win():
8484
8585 return {"include_dirs" : [inc ], "library_dirs" : [lib ]}
8686
87+
8788class CustomBuildExt (build_ext ):
8889 def run (self ):
8990 super ().run ()
9091 gsl_path = os .environ .get ("GSL_PATH" ) or os .path .join (os .environ .get ("CONDA_PREFIX" , "" ), "Library" )
91-
92+
9293 bin_path = os .path .join (gsl_path , "bin" )
9394 dest_path = os .path .join (self .build_lib , "diffpy" , "pdffit2" )
9495 os .makedirs (dest_path , exist_ok = True )
9596
9697 for dll_file in glob .glob (os .path .join (bin_path , "gsl*.dll" )):
9798 shutil .copy (dll_file , dest_path )
9899
100+
99101# ----------------------------------------------------------------------------
100102
101103# compile and link options
You can’t perform that action at this time.
0 commit comments