Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Packaging for GNU/Linux #3

Closed
McSinyx opened this issue Dec 26, 2019 · 3 comments
Closed

Packaging for GNU/Linux #3

McSinyx opened this issue Dec 26, 2019 · 3 comments
Assignees
Labels
distribution Packaging and distributing of source and binary
Milestone

Comments

@McSinyx
Copy link
Owner

McSinyx commented Dec 26, 2019

Trying to upload the wheel built from my Debian GNU/Linux to PyPI gives something like:

HTTPError: 400 Client Error: Binary wheel 'archaicy-0.0.1-cp37-cp37m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://upload.pypi.org/legacy/

PyPI currently requires extensions to comply with either PEP 513 (manylinux1) or PEP 571 (manylinux2010). For more information, see https://github.com/pypa/manylinux

@McSinyx McSinyx added the distribution Packaging and distributing of source and binary label Dec 26, 2019
@McSinyx McSinyx self-assigned this Dec 26, 2019
@McSinyx McSinyx added this to the 1.0 milestone Dec 30, 2019
@McSinyx
Copy link
Owner Author

McSinyx commented Jan 30, 2020

I'm targeting manylinux2014 on cibuildwheel and got the first build working on PyPI. Just to not loose the precious history, these are the commands for CIBW_BEFORE_BUILD:

yum install -y git cmake alsa-lib-devel pulseaudio-libs-devel libvorbis-devel opusfile-devel libsndfile-devel
pip install cmake>=3
git clone https://github.com/kcat/openal-soft
cd openal-soft/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
cmake --build . --parallel `nproc` --target install --config Release
git clone https://github.com/kcat/alure
mkdir alure/build
cd alure/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
cmake --build . --parallel `nproc` --target install --config Release
pip uninstall -y cmake

@McSinyx
Copy link
Owner Author

McSinyx commented Jan 30, 2020

Wheel generated by c95e962 something went wrong for examples:

AL lib: (EE) alcOpenDevice: Option 'format' is deprecated, please use 'channels' and 'sample-type'

HRTF also seemed not bundled with the wheel (palace-hrtf example):

No HRTF found!
AL lib: (WW) OpenDataFile: Could not open default-44100.mhr
AL lib: (WW) OpenDataFile: Could not open /home/cnx/.local/share/openal/hrtf/default-44100.mhr
AL lib: (WW) OpenDataFile: Could not open /usr/local/share//openal/hrtf/default-44100.mhr
AL lib: (EE) LoadHrtf: Invalid header in default-44100.mhr: "MinPHR02"
AL lib: (EE) LoadHrtf: Failed to load default-44100.mhr
AL lib: (WW) OpenDataFile: Could not open default-44100.mhr
AL lib: (WW) OpenDataFile: Could not open /home/cnx/.local/share/openal/hrtf/default-44100.mhr
AL lib: (WW) OpenDataFile: Could not open /usr/local/share//openal/hrtf/default-44100.mhr
AL lib: (EE) LoadHrtf: Invalid header in default-44100.mhr: "MinPHR02"
AL lib: (EE) LoadHrtf: Failed to load default-44100.mhr
AL lib: (EE) GetHrtf: Incompatible format: Stereo 44100hz
HRTF not enabled!

Edit: This is fixed by installing a more recent version of OpenAL Soft.

@McSinyx
Copy link
Owner Author

McSinyx commented Feb 1, 2020

This is solved as of 3a6998f.

@McSinyx McSinyx closed this as completed Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
distribution Packaging and distributing of source and binary
Projects
None yet
Development

No branches or pull requests

1 participant