summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bishop <stuart@stuartbishop.net>2013-01-03 16:47:13 +0700
committerStuart Bishop <stuart@stuartbishop.net>2013-01-03 16:47:13 +0700
commitc8da7e96300d943f9a9fc514007fdd10840a4637 (patch)
tree821e7c76c66cda6d65dde1e3dd0291046ee0b944
parent65cdc27273d3ff5d5783ea59b204f8ffca75d6c6 (diff)
downloadpytz-c8da7e96300d943f9a9fc514007fdd10840a4637.tar.gz
Break hardlinks in the compiled zoneinfo files, working around http://bugs.python.org/issue8876release_2012j
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 08d2ff2..5a63dce 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,13 @@ upload_docs: docs
.stamp-zoneinfo:
${MAKE} -C ${OLSON}/src TOPDIR=`pwd`/build install
+ # Break hard links, working around http://bugs.python.org/issue8876.
+ for d in zoneinfo zoneinfo-leaps zoneinfo-posix; do \
+ rm -rf `pwd`/build/etc/$$d.tmp; \
+ rsync -a `pwd`/build/etc/$$d/ `pwd`/build/etc/$$d.tmp; \
+ rm -rf `pwd`/build/etc/$$d; \
+ mv `pwd`/build/etc/$$d.tmp `pwd`/build/etc/$$d; \
+ done
touch $@
build/dist/locales/pytz.pot: .stamp-tzinfo