Skip to content

Commit

Permalink
re-cythonize with a constrained cython version
Browse files Browse the repository at this point in the history
Constrained the Cython version to be less than 3.0, but greater than
0.29.34.
Updated the setup.py to account for the updated cythonize parameters.
Stopped calling fix_version.py in appveyor builds.
  • Loading branch information
JacobCallahan committed Nov 13, 2023
1 parent 1626d7e commit 803133a
Show file tree
Hide file tree
Showing 16 changed files with 1,535 additions and 878 deletions.
2 changes: 1 addition & 1 deletion ci/build-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker_tag="parallelssh/ssh2-manylinux"
docker_files=("ci/docker/manylinux/Dockerfile" "ci/docker/manylinux/Dockerfile.2014_x86_64")

rm -rf build ssh2/libssh2.* ssh2/*.so
python ci/appveyor/fix_version.py .
# python ci/appveyor/fix_version.py .

if [[ $(uname -m) == "aarch64" ]]; then
docker_tag="${docker_tag}:aarch64"
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython
cython>=0.29.34,<3.0.0
flake8
jinja2
sphinx
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
_fwd_default = 0
_comp_args = ["-O2"] if not ON_WINDOWS else None

cython_directives = {'embedsignature': True,
compiler_directives = {'embedsignature': True,
'boundscheck': False,
'optimize.use_switch': True,
'wraparound': False,
'language_level': 2,
}
cython_args = {
'cython_directives': cython_directives,
'cython_compile_time_env': {},
'compiler_directives': compiler_directives,
'compile_time_env': {},
}

if USING_CYTHON:
Expand Down
204 changes: 131 additions & 73 deletions ssh2/agent.c

Large diffs are not rendered by default.

201 changes: 130 additions & 71 deletions ssh2/channel.c

Large diffs are not rendered by default.

96 changes: 66 additions & 30 deletions ssh2/error_codes.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 803133a

Please sign in to comment.