mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-03 23:24:59 -04:00
Enabled pure-python build
This commit is contained in:
parent
2a581a9a9b
commit
363d56d49d
2 changed files with 13 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -2,6 +2,8 @@ import setuptools
|
|||
import sys
|
||||
|
||||
pure_python = False
|
||||
pure_notice = "\n\n**Warning!** *This package is the zero-dependency version of Reticulum. You should almost certainly use the [normal package](https://pypi.org/project/rns) instead. Do NOT install this package unless you know exactly why you are doing it!*"
|
||||
|
||||
if '--pure' in sys.argv:
|
||||
pure_python = True
|
||||
sys.argv.remove('--pure')
|
||||
|
@ -15,6 +17,7 @@ with open("README.md", "r") as fh:
|
|||
if pure_python:
|
||||
pkg_name = "rnspure"
|
||||
requirements = []
|
||||
long_description = long_description.replace("</p>", "</p>"+pure_notice)
|
||||
else:
|
||||
pkg_name = "rns"
|
||||
requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue