Skip to content

Commit

Permalink
Remove setuptools_rust from install requirement
Browse files Browse the repository at this point in the history
setuptools_rust is only required for building cryptography.

Fixes: pyca#5778
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
tiran committed Feb 8, 2021
1 parent ab96ecc commit d9cfdd5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
exec(f.read(), about)


# `setup_requirements` must be kept in sync with `pyproject.toml`
setup_requirements = ["cffi>=1.12", "setuptools-rust>=0.11.4"]
# `install_requirements` and `setup_requirements` must be kept in sync with
# `pyproject.toml`
install_requirements = ["cffi>=1.12"]
setup_requirements = install_requirements + ["setuptools-rust>=0.11.4"]

if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
rust_extensions = []
Expand Down Expand Up @@ -102,7 +104,7 @@
),
include_package_data=True,
python_requires=">=3.6",
install_requires=setup_requirements,
install_requires=install_requirements,
setup_requires=setup_requirements,
extras_require={
"test": [
Expand Down

0 comments on commit d9cfdd5

Please sign in to comment.