You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once Chapel 1.17.0 is released, the printchplenv command can be used to get the runtime library path. To get the Chapel runtime libraries for pychapel, we could use this:
Even better: Chapel's util/config/compileline utility looks like it can supply the equivalent of printchplenv --internal --simple | grep CHPL_RUNTIME_SUBDIR, and much more.
One serious problem w the current Pychapel, is that some platform-specific details it needs to generate compile and link commands are hard-coded in file module/configs/pych.json. This accounts for the main difference between the Rudimentary Pychapel build scripts for Mac OS X v. Ubuntu 16.04 - ie, the embedded source patches to pych.json needed on Mac OS X, for Pychapel's generated command lines to work. A similar change was committed on master in Aug 2017, just to make pychapel work on Ubuntu 16.04 and SLES 12. Another change in Nov 2016 was needed just to maintain compatibility with Chapel itself. (See change history)
Seems like Chapel's compileline utility could generate the right compile-line stuff to put into pych.json at Pychapel installation time, for whatever host platform and Chapel version was at hand. Or, just do it at runtime! Pychapel would be a lot more portable.
compileline existed in Chapel 1.16 but was rewritten in late 2017. Don't know if the current version is supposed to be backward-compatible with Chapel 1.16's version.
Once Chapel 1.17.0 is released, the printchplenv command can be used to get the runtime library path. To get the Chapel runtime libraries for pychapel, we could use this:
instead of this:
The text was updated successfully, but these errors were encountered: