From 534a8825ebe0c216c8588e6f2e484a80e8d115ef Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 10 Jun 2022 11:27:31 +0200 Subject: [PATCH] Updated setup.py --- setup.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9383e41..63d9094 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,26 @@ import setuptools +import sys + +pure_python = False +if '--pure' in sys.argv: + pure_python = True + sys.argv.remove('--pure') + print("Building pure-python wheel") exec(open("RNS/_version.py", "r").read()) with open("README.md", "r") as fh: long_description = fh.read() +if pure_python: + pkg_name = "rnspure" + requirements = [] +else: + pkg_name = "rns" + requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces'] + setuptools.setup( - name="rns", + name=pkg_name, version=__version__, author="Mark Qvist", author_email="mark@unsigned.io", @@ -30,6 +44,6 @@ setuptools.setup( 'rnx=RNS.Utilities.rnx:main', ] }, - install_requires=['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces'], + install_requires=requirements, python_requires='>=3.6', )