summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2016-08-20 19:40:22 +0500
committerSergey Shepelev <temotor@gmail.com>2016-08-23 02:21:03 +0500
commit95a3159a19e913f24b4d69b73168a401b000c5ed (patch)
tree090212bcb17b6849959a59a7a43820fb9b0d219b /bin
parent4f0913d084acab2a991e32389337f86aacf8e1c4 (diff)
downloadeventlet-bundle-dns.tar.gz
bundle dnspython in support/; resolving is always greenbundle-dns
Fixes installation issue when older dnspython is present in system packages https://github.com/eventlet/eventlet/pull/341
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pull-dnspython13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/pull-dnspython b/bin/pull-dnspython
new file mode 100755
index 0000000..ddbd6e1
--- /dev/null
+++ b/bin/pull-dnspython
@@ -0,0 +1,13 @@
+#!/bin/bash -eux
+cd "$( dirname "${BASH_SOURCE[0]}" )/.."
+version=${1-188aa701a6826c607da0624e31a8c4618d0a8017}
+upstream_path=./dnspython-${version}
+if [[ ! -d "${upstream_path}" ]]; then
+ curl -L -odnspython.zip "https://github.com/rthalley/dnspython/archive/${version}.zip"
+ unzip dnspython.zip
+ rm dnspython.zip
+fi
+rm -rf eventlet/support/dns
+# patch --directory=eventlet/support -p1 --normal --forward -r/dev/null <./dns.patch
+mv ${upstream_path}/dns eventlet/support/
+rm -rf ${upstream_path}