Skip to content

support relocated python installs, closes #127 - #159

Open
bd4 wants to merge 1 commit into
swift-lang:masterfrom
bd4:python-relocate
Open

support relocated python installs, closes #127#159
bd4 wants to merge 1 commit into
swift-lang:masterfrom
bd4:python-relocate

Conversation

@bd4

@bd4 bd4 commented Oct 25, 2018

Copy link
Copy Markdown

No description provided.

@bd4

bd4 commented Oct 25, 2018

Copy link
Copy Markdown
Author

Tested by building python 3.4.9 and 2.7.15 with these options:

./configure --prefix=/opt/python/3.4.9 --enable-shared \
   LDFLAGS=-Wl,-rpath,\'$$ORIGIN/../lib\',--enable-new-dtags

and then moving to /opt/python/3.4.9_relocated (and similar for 2.7.15). Then built stc and turbine with these python versions (referenced via custom etc/spack/packages.yaml under spack base), and a normal system python (3.7.0 on manjaro), and ran simple test cases as described here http://swift-lang.github.io/swift-t/guide.html#leaf_python with swift-t command after loading the correct spack modules.

Here is an example spack packages.yaml for reference:

packages:
    python:
        paths:
            python@2.7.15: /opt/python/2.7.15_relocated
            python@3.4.9: /opt/python/3.4.9_relocated
            python@3.7.0: /usr

@bd4

bd4 commented Oct 30, 2018

Copy link
Copy Markdown
Author

@bnikolic if you have some time can you test the modified python-config.py from this PR: #159?

@bnikolic

bnikolic commented Oct 31, 2018 via email

Copy link
Copy Markdown
Contributor

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

Successfully merging this pull request may close these issues.

2 participants