mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
b1fb541912
Adding extension, but avoiding adding sources as we're not actually building. As a result build will have a correct suffix `pyodide_2025_0_wasm32.whl` that's pyodide is currently using and this is pyodide is plan to use when it's going to release to PyPI, see https://peps.python.org/pep-0783/
22 lines
805 B
Python
22 lines
805 B
Python
from setuptools import setup, Extension, find_packages
|
|
|
|
setup(
|
|
name="ifcopenshell",
|
|
version="0.8.0",
|
|
description=(
|
|
"IfcOpenShell is an open source (LGPL) software library "
|
|
"for working with the Industry Foundation Classes (IFC) file format."
|
|
),
|
|
author="Thomas Krijnen",
|
|
author_email="thomas@aecgeeks.com",
|
|
url="https://ifcopenshell.org",
|
|
packages=["ifcopenshell"],
|
|
package_data={
|
|
# "*.so" is needed to include prebuilt binary extension. Otherwise it would try to build it and fail.
|
|
"ifcopenshell": ["util/schema/*.json", "util/schema/*.ifc", "*.so"],
|
|
"": ["*.json", "*.ifc"],
|
|
},
|
|
# Has to provide extension to get the correct wheel suffix.
|
|
ext_modules=[Extension("ifcopenshell._ifcopenshell_wrapper", sources=[])],
|
|
)
|