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

Deploy Linux x86 compatible package to PyPi.org #2

Closed
2 of 3 tasks
LGro opened this issue Apr 14, 2022 · 0 comments
Closed
2 of 3 tasks

Deploy Linux x86 compatible package to PyPi.org #2

LGro opened this issue Apr 14, 2022 · 0 comments

Comments

@LGro
Copy link
Owner

LGro commented Apr 14, 2022

  • build manylinux1 compatible wheels https://peps.python.org/pep-0513/#rationale
    • specialized old base images like quay.io/pypa/manylinux_2_24_x86_64 are proposed
    • cibuildwheel is used in pybind11 example
      • wants to run on host or at least with docker; potentially build _pyapsi and then move outside of docker?
      • also uses quay.io manylinux base images; but seems to use manylinux2014 not most recent one manylinux_2_24_x86_64, can be overwritten with env CIBW_MANYLINUX_X86_64_IMAGE=quay.io/pypa/manylinux_2_24_x86_64
      • fails with CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. bceause vcpkg is located in /tmp/ (note, environment variable used in setup.py for vcpkg root dir doesn't seem to be propagated to cibuildwheel dockers)
      • flatc seems to require GLIBCXX_3.4.26 which is not present in the manylinux docker
      • following the pybind11 example workflow seems to work for build_sdist, but also just seems to package sources (likely missing important bits)
    • setup.py build is deprecated, but python -m build conflicts with current cmake setup
  • alternative to pre-built: add apsi as submodule, figure out how to patch AVX during/before build, and then have folks do VCPKG_ROOT_DIR=/path/to/vcpkg pip install git+https://github.com/LGro/PyAPSI.git
  • upload to pypi on tag
LGro added a commit that referenced this issue May 28, 2022
LGro added a commit that referenced this issue May 28, 2022
LGro added a commit that referenced this issue May 28, 2022
LGro added a commit that referenced this issue May 28, 2022
@LGro LGro closed this as completed May 31, 2022
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