Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52306a7 commit fb173cdCopy full SHA for fb173cd
1 file changed
Lib/distutils/command/build_scripts.py
@@ -7,6 +7,7 @@
7
__revision__ = "$Id$"
8
9
import sys, os, re
10
+from distutils import sysconfig
11
from distutils.core import Command
12
from distutils.dep_util import newer
13
from distutils.util import convert_path
@@ -86,8 +87,16 @@ def copy_scripts (self):
86
87
(script, self.build_dir))
88
if not self.dry_run:
89
outf = open(outfile, "w")
- outf.write("#!%s%s\n" %
90
- (os.path.normpath(sys.executable), post_interp))
+ if not sysconfig.python_build:
91
+ outf.write("#!%s%s\n" %
92
+ (os.path.normpath(sys.executable),
93
+ post_interp))
94
+ else:
95
+ outf.write("#!%s%s" %
96
+ (os.path.join(
97
+ sysconfig.get_config_var("BINDIR"),
98
+ "python" + sysconfig.get_config_var("EXE")),
99
100
outf.writelines(f.readlines())
101
outf.close()
102
if f:
0 commit comments