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

Out of date #3

Closed
kousu opened this issue Oct 16, 2018 · 1 comment
Closed

Out of date #3

kousu opened this issue Oct 16, 2018 · 1 comment

Comments

@kousu
Copy link

kousu commented Oct 16, 2018

I'm super super fascinated to explore this, and try out the @autojit decorator, but llvmpy has been deprecated in favour of llvmlite.

I'm installing on OS X but via brew+pip instead of Anaconda just because I have been building the rest of my software on this machine against those versions and I'm in too deep to switch to Anaconda just to experiment.

Here's how I installed python:

$ brew install python

# add the suggested line to ~/.bash_profile
---------------------------------------------------------------
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
----------------------------------------------------------------

Trying to install llvmpy fails for me with

ip-192-168-2-145:src kousu$ pip install llvmpy
Collecting llvmpy
  Using cached https://files.pythonhosted.org/packages/97/0f/98b78dc8a5ec032e05179fc406622e550d5c571f036beca8f06a4752f648/llvmpy-0.12.7.tar.gz
    Complete output from command python setup.py egg_info:
    LLVM version = '6.0.1'
    LLVM targets =
    Generate intrinsic IDs
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/sy/qyp_73v51_757c_h339_h9xw0000gn/T/pip-install-_1kua0qb/llvmpy/setup.py", line 83, in <module>
        auto_intrinsic_gen(incdir)
      File "/private/var/folders/sy/qyp_73v51_757c_h339_h9xw0000gn/T/pip-install-_1kua0qb/llvmpy/setup.py", line 76, in auto_intrinsic_gen
        intrgen.gen(path, fout)
      File "/private/var/folders/sy/qyp_73v51_757c_h339_h9xw0000gn/T/pip-install-_1kua0qb/llvmpy/tools/intrgen.py", line 13, in gen
        for line in open(f):
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/llvm@6/6.0.1/include/llvm/Intrinsics.gen'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/sy/qyp_73v51_757c_h339_h9xw0000gn/T/pip-install-_1kua0qb/llvmpy/

I'll try to patch numpile to run against llvmlite. First, for that, I need to do:

$ brew install llvm@6  # llvmlite is only up to date with last-year's llvm
  ~/.bash_profile
----------------------------------------------------------------
export LDFLAGS="-L/usr/local/opt/llvm@6/lib -Wl,-rpath,/usr/local/opt/llvm@6/lib"
export PATH="/usr/local/opt/llvm@6/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/llvm@6/lib"
export CPPFLAGS="-I/usr/local/opt/llvm@6/include"
----------------------------------------------------------------

$ source ~/.bash_profile

$ pip --version
pip 18.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
$ pip install numpy
$ pip install llvmlite

... TODO ...

@kousu
Copy link
Author

kousu commented May 8, 2019

Fixed by #7.

@kousu kousu closed this as completed May 8, 2019
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

1 participant