Skip to content
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

OS X build of Python that could embed LuaJIT? #717

Open
kcarnold opened this issue Mar 21, 2016 · 2 comments
Open

OS X build of Python that could embed LuaJIT? #717

kcarnold opened this issue Mar 21, 2016 · 2 comments

Comments

@kcarnold
Copy link

For interop with machine learning code written in Torch, it would be great to be able to use lupa with LuaJIT. Unfortunately this fails at present because LuaJIT needs its host executable to be compiled with some special flags.

Would it be possible to build the Anaconda Python package with the appropriate flags to be able to embed LuaJIT? Specifically, the following flags would need to be passed to the linker:

-pagezero_size 10000 -image_base 100000000

See http://luajit.org/install.html.

I do not know if there are any downsides to these flags; ideally there wouldn't need to be a special build.

@kcarnold
Copy link
Author

Alternatively, could I build a Python executable myself with these flags? The recipe in https://github.com/conda/conda-recipes/tree/master/python/python-3.5 seems to be for an old version, Python 3.5.0b4.

@msarahan
Copy link
Contributor

I recommend looking at the conda-forge recipes here:

conda-forge/staged-recipes#84

Continuum will be making these recipes public over time, but we're behind. I hope the conda-forge recipe there can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants