Skip to content

Commit

Permalink
try use actions only to install
Browse files Browse the repository at this point in the history
  • Loading branch information
gmweaver committed Jun 5, 2024
1 parent 7007e87 commit 0e1ef87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5

- name: Install cibuildwheel
Expand All @@ -24,8 +23,20 @@ jobs:
run: python -m cibuildwheel --output-dir dist
env:
CIBW_SKIP: cp36-* cp37-* *musllinux*
CIBW_BEFORE_ALL_LINUX: yum install -y autoconf automake curl libtool sudo
CIBW_BEFORE_ALL_LINUX: yum install -y autoconf automake curl libtool pkgconfig sudo
CIBW_BEFORE_ALL_MACOS: brew install autoconf automake curl libtool pkg-config
CIBW_BEFORE_ALL: >
git clone https://github.com/openvenues/libpostal &&
cd libpostal &&
git checkout tags/v1.1 &&
./bootstrap.sh &&
./configure &&
make -j4 &&
sudo make install &&
pkg-config --cflags libpostal &&
pkg-config --libs libpostal &&
pkg-config --cflags --libs libpostal
CIBW_AFTER_ALL_LINUX: sudo ldconfig

- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def _install_libpostal() -> None:
subprocess.run(["./install_libpostal.sh", tempdir], check=True)


if not _libpostal_installed():
_install_libpostal()
# if not _libpostal_installed():
# _install_libpostal()

ext_modules = [
Extension(
Expand Down

0 comments on commit 0e1ef87

Please sign in to comment.