diff options
| author | Franklin Wei <franklin@rockbox.org> | 2023-10-16 22:34:40 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@rockbox.org> | 2023-10-16 22:34:40 -0400 |
| commit | 252dd218de631a5bfc3afabb7e89ec268385a2f7 (patch) | |
| tree | 0da6fbe12e1a98b18ac25f243cbac25cc2be2a46 /setup.py | |
| parent | 959c7213154dfdf686ef1d993ddc8750b9eb4cfe (diff) | |
| download | rastercarve-252dd218de631a5bfc3afabb7e89ec268385a2f7.zip rastercarve-252dd218de631a5bfc3afabb7e89ec268385a2f7.tar.gz rastercarve-252dd218de631a5bfc3afabb7e89ec268385a2f7.tar.bz2 rastercarve-252dd218de631a5bfc3afabb7e89ec268385a2f7.tar.xz | |
Long story, but setuptools has a hard time recognizing system-managed
OpenCV, and tries to install it anywway when building RasterCarve
Live. Allow suppressing that installation by setting the environment
variable SETUP_IGNORE_OPENCV=1.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #!/usr/bin/env python +import os import setuptools from rastercarve import __version__ @@ -25,7 +26,7 @@ setuptools.setup( "Topic :: Utilities", ], python_requires='>=3.6', - install_requires=["opencv-python", "numpy", "tqdm", "argparse"], + install_requires=["numpy", "tqdm", "argparse"] + ["opencv-python"] if os.getenv("SETUP_IGNORE_OPENCV", "0")=="0" else [], entry_points={ "console_scripts": [ "rastercarve=rastercarve.__main__:main", |