This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 148c05c  ARROW-2754: [Python] Change Python setup.py to make release 
builds by default
148c05c is described below

commit 148c05c190cb7ea165f94ec1b1944795f7e472ac
Author: Wes McKinney <[email protected]>
AuthorDate: Fri Jul 6 18:51:55 2018 -0400

    ARROW-2754: [Python] Change Python setup.py to make release builds by 
default
    
    We already set debug build type in Travis CI. Developers may need to add 
`PYARROW_BUILD_TYPE=debug` to their environments to always build debug builds
    
    Author: Wes McKinney <[email protected]>
    
    Closes #2222 from wesm/ARROW-2754 and squashes the following commits:
    
    11287b4d <Wes McKinney> Change Python setup.py to make release builds by 
default so that pip installs will be optimized
---
 python/setup.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/setup.py b/python/setup.py
index 3951643..79b0fe7 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -94,7 +94,8 @@ class build_ext(_build_ext):
     description = "Build the C-extensions for arrow"
     user_options = ([('cmake-generator=', None, 'CMake generator'),
                      ('extra-cmake-args=', None, 'extra arguments for CMake'),
-                     ('build-type=', None, 'build type (debug or release)'),
+                     ('build-type=', None,
+                      'build type (debug or release), default release'),
                      ('boost-namespace=', None,
                       'namespace of boost (default: boost)'),
                      ('with-parquet', None, 'build the Parquet extension'),
@@ -116,7 +117,8 @@ class build_ext(_build_ext):
         if not self.cmake_generator and sys.platform == 'win32':
             self.cmake_generator = 'Visual Studio 14 2015 Win64'
         self.extra_cmake_args = os.environ.get('PYARROW_CMAKE_OPTIONS', '')
-        self.build_type = os.environ.get('PYARROW_BUILD_TYPE', 'debug').lower()
+        self.build_type = os.environ.get('PYARROW_BUILD_TYPE',
+                                         'release').lower()
         self.boost_namespace = os.environ.get('PYARROW_BOOST_NAMESPACE',
                                               'boost')
 

Reply via email to