Files
MINGW-packages/mingw-w64-python3/0464-use-replace-instead-rename-to-avoid-failure-on-windo.patch
Christoph Reiter 9757046077 python3: Update to 3.6.1 (#2587)
* python3: Update to 3.6.1

The patches starting with 16 are new to fix the build.
Some no longer relevant patches were dropped, the rest is just refreshed.

* Bump pkgrel of all packages containing Python 3 bytecode/extensions.

The package list was generated using:
    pkgfile.exe -R mingw64 -r "cpython.*\\.(py[cod]|dll)"

* lensfun: Add cmake to makedepends

* numpy: Don't hardcode the Python version

* blender: rebuild for new Python

* boost: Don't hardcode Python versions; rebuild

* pillow: Don't hardcode Python version; rebuild

* python-dateutil: Don't hardcode Python versions

* sip: Don't hardcode Python versions

* pyqt4: Don't hardcode Python versions; rebuild

* pyqt5: Don't hardcode Python versions; rebuild

* opencv: Update Python3 version in patch
2017-06-15 17:40:51 +03:00

12 lines
523 B
Diff

--- Python-3.6.1/setup.py.orig 2017-06-13 13:01:14.879033000 +0200
+++ Python-3.6.1/setup.py 2017-06-13 13:01:54.864320000 +0200
@@ -2292,7 +2292,7 @@
else:
newfilename = filename + minoronly
log.info('renaming %s to %s', filename, newfilename)
- os.rename(filename, newfilename)
+ os.replace(filename, newfilename)
newoutfiles.append(newfilename)
if filename in updated_files:
newupdated_files.append(newfilename)