File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -225,12 +225,14 @@ def requirements_check():
225
225
226
226
# Since arbitrary python can be used even within the Makefile
227
227
# make sure that the current python executable is the same as the
228
- # one specified in common.mk. Easiest way is to replace
229
- this_python = sys .executable
230
- key = "PYTHON"
231
- replacement = '\n {0}:={1}' .format (key , this_python )
232
- common = replace_first_key_in_makefile (common , key , replacement ,
233
- common_mk_file )
228
+ # one specified in common.mk. Easiest way is to replace,
229
+ # but no need to do so if creating a source distribution
230
+ if 'sdist' not in sys .argv :
231
+ this_python = sys .executable
232
+ key = "PYTHON"
233
+ replacement = '\n {0}:={1}' .format (key , this_python )
234
+ common = replace_first_key_in_makefile (common , key , replacement ,
235
+ common_mk_file )
234
236
235
237
# Check if CC is in argv:
236
238
CC = "CC"
You can’t perform that action at this time.
0 commit comments