You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/12/07 01:54:29 UTC

[GitHub] vongosling closed pull request #15: Update SDK version to 1.2.0 and refactor boost python build script

vongosling closed pull request #15: Update SDK version to 1.2.0 and refactor boost python build script
URL: https://github.com/apache/rocketmq-client-python/pull/15
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/doc/Introduction.md b/doc/Introduction.md
index b746ee0..371ad97 100644
--- a/doc/Introduction.md
+++ b/doc/Introduction.md
@@ -2,14 +2,14 @@
 ## RocketMQ Client Python
 
 ### 1. Python Version
-* Python 2.7.x
+* python 2.7.x
 
 
 ### 2. Dependency
 
 * [librocketmq](https://github.com/apache/rocketmq-client-cpp)	
 * python-devel 2.7.x
-* boost-python 1.53.0+
+* boost-python 1.58.0
       
 ### 3. Build and Install
 #### Linux Platform
@@ -22,27 +22,31 @@
 * Install dependency:
  
     1. python-devel
-    ```
-    sudo yum install python-devel
-    ```
-    2. boost-python
-    ```
-    sudo yum install boost-python
-    sudo yum install boost-python-devel
-    ```
-    3. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
+       ```
+       sudo yum install python-devel
+       ```
+    
+    2. zlib-devel
+       ```
+       sudo yum install zlib-devel
+       ```
+    3. boost-python
+       ```
+       sudo sh install_boostpython.sh
+       ```
+    4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
       
-    - make and install the RocketMQ library manually from [here](https://github.com/apache/rocketmq-client-cpp)
+       - make and install the RocketMQ library manually from [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp)
          
-    - quick install
-    ```
-    mkdir rocketmqlib
-    cd rocketmqlib
-    wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.0.2/RHEL7.x/librocketmq.tar.gz
-    tar -xzf librocketmq.tar.gz
-    sudo cp librocketmq.so librocketmq.a /usr/local/lib/
-    sudo cp -r rocketmq /usr/local/include/
-    ```
+       - quick install
+       ```
+       mkdir rocketmqlib
+       cd rocketmqlib
+       wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.0.2/RHEL7.x/librocketmq.tar.gz
+       tar -xzf librocketmq.tar.gz
+       sudo cp librocketmq.so librocketmq.a /usr/local/lib/
+       sudo cp -r rocketmq /usr/local/include/
+       ```
    
       
 * Make and install module manually
diff --git a/install_boostpython.sh b/install_boostpython.sh
index 2459df6..4ff9792 100755
--- a/install_boostpython.sh
+++ b/install_boostpython.sh
@@ -41,13 +41,17 @@ if [ $? -ne 0 ];then
     exit 1
 fi
 echo "Install boost static library...."
-sudo   ./bjam cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=static \
-       --with-python  \
+sudo   ./b2 cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=static \
+       runtime-link=static --with-python  \
        -a install 
 if [ $? -ne 0 ];then
     exit 1
 fi
 echo "Install boost dynamic library....."
-sudo   ./bjam cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=shared \
-       --with-python 
-       -a install 
+sudo   ./b2 cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=shared \
+       runtime-link=shared --with-python \
+       -a install
+if [ $? -ne 0 ];then
+    exit 1
+fi
+echo "Finish build boost library."
diff --git a/src/PythonWrapper.h b/src/PythonWrapper.h
index 04b3164..7da396c 100644
--- a/src/PythonWrapper.h
+++ b/src/PythonWrapper.h
@@ -39,8 +39,8 @@ typedef struct _PyMessageExt_ {
     CMessageExt *pMessageExt;
 } PyMessageExt;
 
-#define PYTHON_CLIENT_VERSION "1.0.0"
-#define PYCLI_BUILD_DATE "16-10-2018"
+#define PYTHON_CLIENT_VERSION "1.2.0"
+#define PYCLI_BUILD_DATE "04-12-2018"
 
 #ifdef __cplusplus
 extern "C" {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services