diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2019-05-03 17:58:32 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2019-05-03 17:58:32 +0000 |
commit | acfb84ddf9dc7c13d2a295634ec14900f4c7401a (patch) | |
tree | a7167a31fc01012e5664f693c7ba13b9ba326f54 /math/py-rpy/files/patch-setup.py | |
parent | - Update to version 0.9.2 and make it build on both amd64 and i386 by (diff) |
Move math/rpy -> math/py-rpy
Notes
Notes:
svn path=/head/; revision=500749
Diffstat (limited to 'math/py-rpy/files/patch-setup.py')
-rw-r--r-- | math/py-rpy/files/patch-setup.py | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/math/py-rpy/files/patch-setup.py b/math/py-rpy/files/patch-setup.py new file mode 100644 index 000000000000..caeba282d087 --- /dev/null +++ b/math/py-rpy/files/patch-setup.py @@ -0,0 +1,60 @@ +--- setup.py ++++ setup.py +@@ -30,13 +30,14 @@ can be used for each of these R versions. + See the files INSTALL.UNIX and INSTALL.WINDOWS for more details. + """ + +-DEBUG=True ++DEBUG=False + + import os, os.path, sys, shutil, re + from distutils.core import setup, Extension + from distutils.sysconfig import * + from distutils.errors import * + import rpy_tools ++ + if sys.platform=="win32": + import rpy_wintools + +@@ -85,7 +86,7 @@ for RHOME in RHOMES: + get_config_vars()['OPT'] = '-g -Wall' + else: + # to avoid strict prototypes errors from R includes +- get_config_vars()['OPT'] = '-DNDEBUG -g -O3 -Wall' ++ get_config_vars()['OPT'] = '-DNDEBUG -O3 -Wall' + + # get the Python version + if sys.version[:3] >= '2.2': +@@ -149,22 +150,21 @@ for RHOME in RHOMES: + library_dirs= r_libs + runtime_libs = r_libs + extra_compile_args=[] +- elif sys.platform=='osf1V5': +- include_dirs = [ os.path.join(RHOME.strip(), 'include'), +- 'src' ] +- libraries=['R','Rlapack'] +- library_dirs = r_libs +- runtime_libs = r_libs +- extra_compile_args=["-shared"] +- source_files = source_files + ["src/setenv.c"] ++ + else: # unix-like systems, this is known to work for Linux and Solaris + include_dirs = [ os.path.join(RHOME.strip(), 'include'), + 'src', '/usr/share/R/include' ] +- libraries=['R','Rlapack'] ++ + library_dirs = r_libs + runtime_libs = r_libs + extra_compile_args=["-shared"] + source_files = source_files + ["src/setenv.c"] ++ ++ libraries=['R'] ++ ++ # Ask R to tell us how to properly link against lapack ++ extra_compile_args += [ rpy_tools.get_R_LAPACK_LIB_FLAGS( RHOME ) ] ++ + + # Discover which array packages are present + try: +diff --git src/RPy.h src/RPy.h +index 04faf3d..614ae5a 100644 |