Title: multi-architecture compile on windows by r2evans · Pull Request #6 · cjgb/rPython-win · GitHub
Open Graph Title: multi-architecture compile on windows by r2evans · Pull Request #6 · cjgb/rPython-win
X Title: multi-architecture compile on windows by r2evans · Pull Request #6 · cjgb/rPython-win
Description: updated docs, including need for options(rPython.paths=list(...)) added .onLoad logic to add PYTHONHOME, PYTHONPATH, and update PATH (only if rPython.paths is set correctly) removed references to devtools (will not use options) removed configure files added makevars.win to change between 32-bit and 64-bit python directories and libraries updated cleanup file (one typo, added other compile directories) This might satisfy #2 though I admit to not having tested it extensively with different python installation configurations. This compiles cleanly and runs on my Windows 10 (64), R 3.2.3, python 2.7.11. Command-line Multi-Arch Compilation $ /c/R/R-3.2.3/bin/R CMD INSTALL --build . Entering C:/Users/r2/Documents/Projects/github/rPython-win * installing to library 'C:/Users/r2/R/win-library/3.2' * installing *source* package 'rPython' ... ** libs *** arch - i386 gcc -m32 -I"C:/R/R-3.2.3/include" -DNDEBUG -I"d:/RCompile/r-compiling/local/local323/include" -I"C:/Python27/i386/include" -O3 -Wall -std=gnu99 -mtune=core2 -c pycall.c -o pycall.o gcc -m32 -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/python27/i386/libs -lpython27 -Ld:/RCompile/r-compiling/local/local323/lib/i386 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/R/R-3.2.3/bin/i386 -lR installing to C:/Users/r2/R/win-library/3.2/rPython/libs/i386 *** arch - x64 gcc -m64 -I"C:/R/R-3.2.3/include" -DNDEBUG -I"d:/RCompile/r-compiling/local/local323/include" -I"C:/Python27/x64/include" -O2 -Wall -std=gnu99 -mtune=core2 -c pycall.c -o pycall.o gcc -m64 -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/python27/x64/libs -lpython27 -Ld:/RCompile/r-compiling/local/local323/lib/x64 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/R/R-3.2.3/bin/x64 -lR installing to C:/Users/r2/R/win-library/3.2/rPython/libs/x64 ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded *** arch - i386 Entering C:/Users/r2/Documents/Projects/github/rPython-win Manually setting PYTHONHOME: /Python27/i386 Manually setting PYTHONPATH: /Python27/i386/Lib *** arch - x64 Entering C:/Users/r2/Documents/Projects/github/rPython-win Manually setting PYTHONHOME: /Python27/x64 Manually setting PYTHONPATH: /Python27/x64/Lib * MD5 sums packaged installation of 'rPython' as rPython_0.0-6.zip * DONE (rPython) 32-bit R and Python # R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" # Copyright (C) 2015 The R Foundation for Statistical Computing # Platform: i386-w64-mingw32/i386 (32-bit) # ... library(rPython) # Loading required package: RJSONIO # Manually setting PYTHONHOME: /Python27/i386 # Manually setting PYTHONPATH: /Python27/i386/Lib python.exec('import platform') python.get('platform.architecture()') # [1] "32bit" "WindowsPE" 64-bit R and Python # R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" # Copyright (C) 2015 The R Foundation for Statistical Computing # Platform: x86_64-w64-mingw32/x64 (64-bit) # ... library(rPython) # Loading required package: RJSONIO # Manually setting PYTHONHOME: /Python27/x64 # Manually setting PYTHONPATH: /Python27/x64/Lib python.exec('import platform') python.get('platform.architecture()') # [1] "64bit" "WindowsPE" TODO On package load, perhaps it should determine if the available python is 32-bit or 64-bit, and if not compatible, tell the user as such. For instance, if both 32-bit and 64-bit R libraries are available but the 64-bit python cannot be found, on package load it will likely cause R to crash. The munging of the current PATH to update it is, well, a munge, and not immune from breakage. Perhaps this could be improved.
Open Graph Description: updated docs, including need for options(rPython.paths=list(...)) added .onLoad logic to add PYTHONHOME, PYTHONPATH, and update PATH (only if rPython.paths is set correctly) removed references to d...
X Description: updated docs, including need for options(rPython.paths=list(...)) added .onLoad logic to add PYTHONHOME, PYTHONPATH, and update PATH (only if rPython.paths is set correctly) removed references to d...
Opengraph URL: https://github.com/cjgb/rPython-win/pull/6
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:167b62c6-6f01-e80e-fc06-3e1cce7cb39d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DE9C:10F729:FD6A3E:155FF4A:698F7EDE |
| html-safe-nonce | 1950f3d8613ded8a3c4b0d5f2e054f2c854e14020aae844fe88d30ea81a600aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTlDOjEwRjcyOTpGRDZBM0U6MTU1RkY0QTo2OThGN0VERSIsInZpc2l0b3JfaWQiOiI5MDg0MTIzMjcxODM0NTk5MTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 31c8f74222c283066979412927bf6e2ff62fda49b77db21ea9eaee4762d7e251 |
| hovercard-subject-tag | pull_request:58363233 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cjgb/rPython-win/pull/6/files |
| twitter:image | https://avatars.githubusercontent.com/u/5815808?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5815808?s=400&v=4 |
| og:image:alt | updated docs, including need for options(rPython.paths=list(...)) added .onLoad logic to add PYTHONHOME, PYTHONPATH, and update PATH (only if rPython.paths is set correctly) removed references to d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4763146d672e989a41c6c0bd715790c0c59341d9f855508c8a3196e1e480b8f7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cjgb/rPython-win git https://github.com/cjgb/rPython-win.git |
| octolytics-dimension-user_id | 1321567 |
| octolytics-dimension-user_login | cjgb |
| octolytics-dimension-repository_id | 14503010 |
| octolytics-dimension-repository_nwo | cjgb/rPython-win |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14503010 |
| octolytics-dimension-repository_network_root_nwo | cjgb/rPython-win |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b442a4e0d8e68ffb351da689499018fde153e49 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width