Skip to content

Commit

Permalink
Added AITVIEWER_INSTALL_PYQT6 environment option to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ramenguy99 committed Sep 4, 2023
1 parent c1cc145 commit 841ecb2
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
# Copyright (C) 2023 ETH Zurich, Manuel Kaufmann, Velko Vechev, Dario Mylonopoulos
import os

from setuptools import find_packages, setup

from aitviewer import __version__

INSTALL_PYQT6 = os.getenv("AITVIEWER_INSTALL_PYQT6", 0)

requirements = [
"torch>=1.6.0",
"numpy>=1.18,<2",
"opencv-contrib-python-headless>=4.5.1.48",
"smplx",
"moderngl-window>=2.4.3",
"moderngl>=5.8.2,<6",
"imgui==2.0.0",
"tqdm>=4.60.0",
"trimesh>=3.9.15,<4",
"scipy>=1.5.2",
"omegaconf>=2.1.1",
"roma>=1.2.3",
"joblib",
"scikit-image>=0.9.0",
"scikit-video",
"Pillow",
"websockets",
"usd-core>=23.5",
]

# Choose PyQt version depending on environment variable.
if INSTALL_PYQT6:
requirements.append("PyQt6>=6.5.2")
else:
requirements.append("PyQt5>=5.15.4")

setup(
name="aitviewer",
description="Viewing and rendering of sequences of 3D data.",
Expand All @@ -27,25 +58,5 @@
],
platforms=["any"],
python_requires=">=3.7,<3.11",
install_requires=[
"torch>=1.6.0",
"numpy>=1.18,<2",
"opencv-contrib-python-headless>=4.5.1.48",
"smplx",
"moderngl-window>=2.4.3",
"moderngl>=5.8.2,<6",
"PyQt5>=5.15.4",
"imgui==2.0.0",
"tqdm>=4.60.0",
"trimesh>=3.9.15,<4",
"scipy>=1.5.2",
"omegaconf>=2.1.1",
"roma>=1.2.3",
"joblib",
"scikit-image>=0.9.0",
"scikit-video",
"Pillow",
"websockets",
"usd-core>=23.5",
],
install_requires=requirements,
)

0 comments on commit 841ecb2

Please sign in to comment.