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

WIP meson #1922

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,45 +33,45 @@ jobs:
fail-fast: true
matrix:
include:
- os: macos-13
python: 3.7

- os: macos-13
python: 3.11
zmq: bundled

- os: macos-13
python: pypy-3.9
zmq: bundled

- os: ubuntu-20.04
python: 3.7
zmq: bundled
tornado: none

- os: ubuntu-22.04
python: pypy-3.9
zmq: bundled

- os: ubuntu-22.04
python: pypy-3.7

- os: ubuntu-22.04
python: 3.9
tornado: head

- os: ubuntu-22.04
python: "3.10"

- os: ubuntu-22.04
python: "3.11"

- os: ubuntu-22.04
python: "3.8"
zmq: head

- os: ubuntu-22.04
python: "3.12"
# - os: macos-13
# python: 3.7
#
# - os: macos-13
# python: 3.11
# zmq: bundled
#
# - os: macos-13
# python: pypy-3.9
# zmq: bundled
#
# - os: ubuntu-20.04
# python: 3.7
# zmq: bundled
# tornado: none
#
# - os: ubuntu-22.04
# python: pypy-3.9
# zmq: bundled
#
# - os: ubuntu-22.04
# python: pypy-3.7
#
# - os: ubuntu-22.04
# python: 3.9
# tornado: head
#
# - os: ubuntu-22.04
# python: "3.10"
#
# - os: ubuntu-22.04
# python: "3.11"
#
# - os: ubuntu-22.04
# python: "3.8"
# zmq: head
#
# - os: ubuntu-22.04
# python: "3.12"

- os: windows-2022
python: "3.7"
Expand Down
76 changes: 37 additions & 39 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ jobs:

- name: build sdist
run: |
python setup.py fetch_libzmq
python setup.py cython
python -m build --sdist .

- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -95,43 +93,43 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-11
name: mac-cpython
cibw:
build: "cp*"

- os: macos-11
name: mac-pypy
cibw:
build: "pp*"

- os: macos-11
name: mac-arm
cibw:
arch: universal2
build: "cp*"

- name: manylinux-x86_64
cibw:
arch: x86_64
build: "*manylinux*"

- name: manylinux-i686
cibw:
arch: i686
build: "*manylinux*"

# additional manylinux variants, not specified in pyproject.toml:
# build with newer 2_28 for cpython >= 3.10, pypy 3.9
- name: manylinux-x86_64-2_28
cibw:
arch: x86_64
build: "cp31*-manylinux* pp39-manylinux*"
manylinux_x86_64_image: manylinux_2_28

- name: musllinux
cibw:
build: "*musllinux*"
# - os: macos-11
# name: mac-cpython
# cibw:
# build: "cp*"
#
# - os: macos-11
# name: mac-pypy
# cibw:
# build: "pp*"
#
# - os: macos-11
# name: mac-arm
# cibw:
# arch: universal2
# build: "cp*"
#
# - name: manylinux-x86_64
# cibw:
# arch: x86_64
# build: "*manylinux*"
#
# - name: manylinux-i686
# cibw:
# arch: i686
# build: "*manylinux*"
#
# # additional manylinux variants, not specified in pyproject.toml:
# # build with newer 2_28 for cpython >= 3.10, pypy 3.9
# - name: manylinux-x86_64-2_28
# cibw:
# arch: x86_64
# build: "cp31*-manylinux* pp39-manylinux*"
# manylinux_x86_64_image: manylinux_2_28
#
# - name: musllinux
# cibw:
# build: "*musllinux*"

- name: win32
os: windows-2019
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.vagrant
*.pyc
zmq/backend/cython/*.c
zmq/backend/cffi/*.[co]
zmq/devices/*.c
zmq/utils/*.json
zmq/include/*.h
Expand Down
11 changes: 0 additions & 11 deletions buildutils/__init__.py

This file was deleted.

8 changes: 5 additions & 3 deletions buildutils/build_cffi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import json
import os
import sys

import cffi

here = os.path.dirname(os.path.abspath(__file__))
repo_root = os.path.dirname(here)
zmq_dir = os.path.join(os.path.dirname(here), 'zmq')
backend_dir = os.path.join(zmq_dir, 'backend', 'cffi')

Expand All @@ -19,7 +21,7 @@ def load_compiler_config():
else:
cfg = {}

cfg.setdefault("include_dirs", [])
cfg.setdefault("include_dirs", [os.path.join(zmq_dir, 'utils')])
cfg.setdefault("library_dirs", [])
cfg.setdefault("runtime_library_dirs", [])
cfg.setdefault("libraries", ["zmq"])
Expand All @@ -33,7 +35,7 @@ def load_compiler_config():
abs_paths = []
for p in cfg[key]:
if p.startswith('zmq'):
p = os.path.join(zmq_dir, p)
p = os.path.join(repo_root, p)
abs_paths.append(str(p))
cfg[key] = abs_paths
return cfg
Expand All @@ -57,4 +59,4 @@ def load_compiler_config():
)

if __name__ == "__main__":
ffi.compile()
ffi.emit_c_code(sys.argv[1])
Loading
Loading