prebuild for ZMQ
authorimarom <[email protected]>
Sun, 13 Mar 2016 11:51:03 +0000 (13:51 +0200)
committerimarom <[email protected]>
Sun, 13 Mar 2016 11:55:20 +0000 (13:55 +0200)
with README.txt

scripts/external_libs/prebuild/zmq/README.txt [new file with mode: 0644]
scripts/external_libs/prebuild/zmq/pyzmq-14.5.0.tar.gz [new file with mode: 0644]
scripts/external_libs/prebuild/zmq/zeromq-4.0.2.tar.gz [new file with mode: 0644]

diff --git a/scripts/external_libs/prebuild/zmq/README.txt b/scripts/external_libs/prebuild/zmq/README.txt
new file mode 100644 (file)
index 0000000..0e4f284
--- /dev/null
@@ -0,0 +1,41 @@
+How to build PyZMQ for your system
+==================================
+
+I'll desrcibe a harder task - how to build cross platform PyZMQ.
+Building for current system will be much easier.
+
+for the example I will build 32 bit Python 3 PyZMQ on a 64 bit machine.
+
+1. build ZMQ library
+    a. Unzip zeromq-4.0.2.tar.gz
+    b. create a dir called zermoq-4.0.2-bin
+    c  set CC, CXX, CXXLD, CFLAGS, CXXFLAGS and LDSHARED correctly if you need another toolchain
+    d. configure: ./configure --prefix=zeromq-4.0.2-bin
+    e. make -j64
+    f. make install
+
+now we have ZMQ binaries built to zeromq-4.0.2-bin
+
+
+2. build PyZMQ
+
+    a. unzip pyzmq-14.5.0
+    b. create a dir called pyzmq-14.5.0-bin
+    c. setenv LD_LIBRARY_PATH zeromq-4.0.2-bin/lib
+    c. *FOR CROSS COMPILE* we need a setup.cfg file skip to D
+        for non cross compile - you can simply run:
+       python setup.py configure --zmq=zeromq-4.0.2-bin
+       python setup.py build --prefix=pyzmq-14.5.0-bin
+
+
+    d. *CROSS COMPILE*
+       create a setup.cfg accroding to setup.cfg.template
+       with include_libs, and directory_libs
+       make sure they include the Python include/lib directories
+       as well as ZMQ
+       for example, for Python 3 i had to download the Python 3 development package
+
+
+The final output:
+prebuild/zmq/pyzmq-14.5.0-bin/lib/python3.4/site-packages/zmq
+
diff --git a/scripts/external_libs/prebuild/zmq/pyzmq-14.5.0.tar.gz b/scripts/external_libs/prebuild/zmq/pyzmq-14.5.0.tar.gz
new file mode 100644 (file)
index 0000000..6b3a8c2
Binary files /dev/null and b/scripts/external_libs/prebuild/zmq/pyzmq-14.5.0.tar.gz differ
diff --git a/scripts/external_libs/prebuild/zmq/zeromq-4.0.2.tar.gz b/scripts/external_libs/prebuild/zmq/zeromq-4.0.2.tar.gz
new file mode 100644 (file)
index 0000000..6ecb025
Binary files /dev/null and b/scripts/external_libs/prebuild/zmq/zeromq-4.0.2.tar.gz differ