Loading debian/patches/2to3.patch +24 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,30 @@ src/obitools/options/_bioseqfilter.pyx:31:19: undeclared name not builtin: reduc --- a/distutils.ext/obidistutils/command/build_scripts.py +++ b/distutils.ext/obidistutils/command/build_scripts.py @@ -43,7 +43,7 @@ class build_scripts(ori_build_scripts): # that way, we'll get accurate feedback if we can read the # script. try: - f = open(script, "r") + f = open(script, "rb") except IOError: if not self.dry_run: raise @@ -67,11 +67,11 @@ class build_scripts(ori_build_scripts): log.info("copying and adjusting %s -> %s", script, self.build_dir) if not self.dry_run: - outf = open(outfile, "w") + outf = open(outfile, "wb") if not sysconfig.python_build: - outf.write("#!%s%s\n" % + outf.write(("#!%s%s\n" % (self.executable, - post_interp)) + post_interp)).encode()) else: outf.write("#!%s%s\n" % (os.path.join( @@ -93,8 +93,8 @@ class build_scripts(ori_build_scripts): if self.dry_run: log.info("changing mode of %s", F) Loading Loading
debian/patches/2to3.patch +24 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,30 @@ src/obitools/options/_bioseqfilter.pyx:31:19: undeclared name not builtin: reduc --- a/distutils.ext/obidistutils/command/build_scripts.py +++ b/distutils.ext/obidistutils/command/build_scripts.py @@ -43,7 +43,7 @@ class build_scripts(ori_build_scripts): # that way, we'll get accurate feedback if we can read the # script. try: - f = open(script, "r") + f = open(script, "rb") except IOError: if not self.dry_run: raise @@ -67,11 +67,11 @@ class build_scripts(ori_build_scripts): log.info("copying and adjusting %s -> %s", script, self.build_dir) if not self.dry_run: - outf = open(outfile, "w") + outf = open(outfile, "wb") if not sysconfig.python_build: - outf.write("#!%s%s\n" % + outf.write(("#!%s%s\n" % (self.executable, - post_interp)) + post_interp)).encode()) else: outf.write("#!%s%s\n" % (os.path.join( @@ -93,8 +93,8 @@ class build_scripts(ori_build_scripts): if self.dry_run: log.info("changing mode of %s", F) Loading