代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys, re, os
try:
from skbuild import setup
import nanobind
except ImportError:
print("The preferred way to invoke 'setup.py' is via pip, as in 'pip "
"install .'. If you wish to run the setup script directly, you must "
"first install the build dependencies listed in pyproject.toml!",
file=sys.stderr)
raise
VERSION_REGEX = re.compile(
r"^\s*#\s*define\s+NANOGUI_VERSION_([A-Z]+)\s+(.*)$", re.MULTILINE)
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join("include/nanogui/common.h")) as f:
matches = dict(VERSION_REGEX.findall(f.read()))
nanogui_version = "{MAJOR}.{MINOR}.{PATCH}".format(**matches)
long_description = \
'''NanoGUI is a minimalistic cross-platform widget library for OpenGL 3+, GLES
2/3, and Metal. It supports automatic layout generation, stateful C++ lambdas
callbacks, a variety of useful widget types and Retina-capable rendering on
Apple devices thanks to NanoVG by Mikko Mononen. Python bindings of all
functionality are provided using nanobind.'''
setup(
name="nanogui",
version=nanogui_version,
author="Wenzel Jakob",
author_email="wenzel.jakob@epfl.ch",
description='A minimalistic GUI library for OpenGL, GLES 2, and Metal',
url="https://github.com/mitsuba-renderer/nanogui",
license="BSD",
long_description=long_description,
long_description_content_type='text/markdown',
cmake_args=[
'-DCMAKE_INSTALL_LIBDIR=nanogui',
'-DCMAKE_INSTALL_BINDIR=nanogui',
'-DCMAKE_INSTALL_INCLUDEDIR=nanogui/include',
'-DCMAKE_INSTALL_DATAROOTDIR=nanogui/share',
'-DNANOGUI_BUILD_EXAMPLES=OFF'
],
packages=['nanogui']
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。