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

SaxonC 12.1 pypi packaging help #4

Open
ond1 opened this issue Oct 13, 2022 · 4 comments
Open

SaxonC 12.1 pypi packaging help #4

ond1 opened this issue Oct 13, 2022 · 4 comments

Comments

@ond1
Copy link

ond1 commented Oct 13, 2022

Hi @tennom

I have used your ideas from this project to try and build a pypi wheel package for SaxonC 12.1, which uses a graalvm shared library. I am struggling a bit with how to link the shared library into the wheel. Also I would like to get some pointers as to how you use manylinux to build the wheels for different python version. Is it possible we can discuss this please?

@tennom
Copy link
Owner

tennom commented Oct 14, 2022

Hi @ond1,
Glad to hear from you. Me too, I packaged your new release a while ago and it has worked fine. Maybe some slight updates are needed in the test code. Anyways, here is how I included and linked the libs in the wheel.

  1. Copy all the libs in the saxon_home dir.
  2. Make the build include the dir by setting up the include=True in setup.py and MANIFEST.in.
  3. then set the saxon_home dir in Python environment in /src/init.py. Please check the more updated version in the Windows version.

As for Manylinux, I use the docker image and wheels in the container I think. I also used the Github Workflows to automate the process so please check those files as well. We can't expect the running system has any preinstalled libs so we need to move libjvm into the same dir we created earlier. Programs like AuditWheel and Desolate will do some parts but we need to do manually the rest. Remember to change the lib paths for Mac and Linux, otherwise, it will still complain of missing libs.

@ond1
Copy link
Author

ond1 commented Oct 14, 2022

Do you change the lib paths for Mac and Linux within the PyPI package which get set in there install process? Or is something you do manually after running 'pip install'

@tennom
Copy link
Owner

tennom commented Oct 14, 2022 via email

@ond1
Copy link
Author

ond1 commented Oct 14, 2022

Great thanks.

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