-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On OSX, need to remove #! /bin/sh
from th?
#32
Comments
@hughperkins which file are you referring to? I dont see any file under the trepl repo itself having that shebang. |
I'm not sure what the source file is, but I just double-checked that installing via distro does create such a file. You can try:
Result of
You can see that the first line is |
Odd right? Because the |
I think it'd need someone to go through |
ohhh, i think this is because of some luarocks over-smartness. If you use the "builtin" build system, and specifiy something in the "bin" section, it auto-wraps it in such shell scripts I believe: |
Ok. So... what needs to be changed so that the environment for users on Mac OS X loads correctly? |
unix.wrap_script is getting called and adding it. Maybe the config for osx/darwin could include wrap_bin_scripts: false in the rock spec. |
@spdustin ok, you mean, this is something I can modify in the cltorch rockspec somehow? |
So, could it be something like, put just before/after line 57 https://github.com/keplerproject/luarocks/blob/e3203adbc3f5daa5f46097d3439edbada01807f3/src/luarocks/fs/unix.lua#L57 :
|
Per hughperkins/cltorch#24 (comment) , the appropriate comparison string is 'OSX', so it would look like:
|
On OSX, need to remove
#! /bin/sh
from th?See here:
hughperkins/cltorch#21 (comment)
The text was updated successfully, but these errors were encountered: