diff --git a/mingw-w64-python-setuptools/PKGBUILD b/mingw-w64-python-setuptools/PKGBUILD index adbe28c317..fb74eb14c2 100644 --- a/mingw-w64-python-setuptools/PKGBUILD +++ b/mingw-w64-python-setuptools/PKGBUILD @@ -1,11 +1,10 @@ # Maintainer: Alexey Pavlov _realname=setuptools - pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgname=("${MINGW_PACKAGE_PREFIX}-python2-setuptools" "${MINGW_PACKAGE_PREFIX}-python3-setuptools") _py3_base=3.4 -pkgver=5.4.1 +pkgver=7.0 pkgrel=1 pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages (mingw-w64)" arch=('any') @@ -13,13 +12,16 @@ license=('PSF') url="http://pypi.python.org/pypi/setuptools" depends=("${MINGW_PACKAGE_PREFIX}-python2" "${MINGW_PACKAGE_PREFIX}-python3") source=(http://pypi.python.org/packages/source/s/setuptools/${_realname}-${pkgver}.tar.gz - 'mingw-python-fix.patch') -md5sums=('3540a44b90017cbb851840934156848e' - 'c141e15510d51e35b1d1578b35510f9a') + 'mingw-python-fix.patch' + 'dont-execute-msvc.patch') +md5sums=('6245d6752e2ef803c365f560f7f2f940' + 'c141e15510d51e35b1d1578b35510f9a' + '8ac6825bdc329f9adf1f71142122a72b') prepare() { cd "${srcdir}/setuptools-${pkgver}" patch -p1 -i ${srcdir}/mingw-python-fix.patch + patch -p1 -i ${srcdir}/dont-execute-msvc.patch cd "${srcdir}" diff --git a/mingw-w64-python-setuptools/dont-execute-msvc.patch b/mingw-w64-python-setuptools/dont-execute-msvc.patch new file mode 100644 index 0000000000..c7a2220ed0 --- /dev/null +++ b/mingw-w64-python-setuptools/dont-execute-msvc.patch @@ -0,0 +1,15 @@ +--- setuptools-7.0/setuptools/extension.py.orig 2014-10-20 00:40:16.151400000 +0400 ++++ setuptools-7.0/setuptools/extension.py 2014-10-20 00:40:45.978600000 +0400 +@@ -6,12 +6,9 @@ + import distutils.extension + + from .dist import _get_unpatched +-from . import msvc9_support + + _Extension = _get_unpatched(distutils.core.Extension) + +-msvc9_support.patch_for_specialized_compiler() +- + def have_pyrex(): + """ + Return True if Cython or Pyrex can be imported.