Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Build fix for v0.6.0 #42

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ethanluoyc
Copy link
Contributor

@ethanluoyc ethanluoyc commented Aug 9, 2023

Closes #41.

I tested this on my machine for Python 3.9 and 3.10. This seems to work fine. Some of the workaround for my previous fork no longer seems necessary.

@ddmbr can you help run the internal checks and see if it works. If so, I suppose we can release lp v0.6 and I can update my projects to use Launchpad from PyPI.

Also @hartikainen

@@ -235,14 +235,14 @@ cc_library(

def _python_includes_repo_impl(repo_ctx):
python_include_path = _find_python_include_path(repo_ctx)
python_solib = _find_python_solib_path(repo_ctx)
Copy link
Contributor Author

@ethanluoyc ethanluoyc Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is based on the google-deepmind/reverb#106 I did for Reverb. It's not necessary to include the .so and that actually causes troubles for some Python environments that do not install libpython.so at the system location (aka conda).

I can clean this up if tests pass.

The current build is problematic when building for
multiple python versions.

See

google-deepmind/reverb@4da8a91
@hartikainen
Copy link

Any update on this? I'm happy to help e.g. testing this if that's useful.

@ethanluoyc
Copy link
Contributor Author

@hartikainen
I have started using this PR for my projects. You can find built wheels here
https://github.com/ethanluoyc/launchpad/releases/tag/v0.6.0rc0

You can use these wheels for your requirements.txt like

dm-launchpad @ https://github.com/ethanluoyc/launchpad/releases/download/v0.6.0rc0/dm_launchpad-0.6.0rc0-cp39-cp39-manylinux2014_x86_64.whl

@GJBoth
Copy link

GJBoth commented Sep 23, 2024

@ethanluoyc This is very useful, thanks! I had some issues building it myself - any chance you could do a quick python 3.12 wheel?

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

Successfully merging this pull request may close these issues.

Launchpad Release
3 participants