diff options
author | Stuart Bishop <stuart@stuartbishop.net> | 2013-01-03 16:47:13 +0700 |
---|---|---|
committer | Stuart Bishop <stuart@stuartbishop.net> | 2013-01-03 16:47:13 +0700 |
commit | c8da7e96300d943f9a9fc514007fdd10840a4637 (patch) | |
tree | 821e7c76c66cda6d65dde1e3dd0291046ee0b944 | |
parent | 65cdc27273d3ff5d5783ea59b204f8ffca75d6c6 (diff) | |
download | pytz-c8da7e96300d943f9a9fc514007fdd10840a4637.tar.gz |
Break hardlinks in the compiled zoneinfo files, working around http://bugs.python.org/issue8876release_2012j
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |