mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
pyodide setup.py - ensure we have correct pyodide_2025_0_wasm32 suffix
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/
This commit is contained in:
@@ -40,7 +40,9 @@ jobs:
|
|||||||
chmod +x script.sh
|
chmod +x script.sh
|
||||||
sed -i s/--tty// pyodide/run_docker
|
sed -i s/--tty// pyodide/run_docker
|
||||||
pyodide/run_docker ./script.sh
|
pyodide/run_docker ./script.sh
|
||||||
mv dist/ifcopenshell-$VERSION-py3-none-any.whl dist/ifcopenshell-$VERSION+${GITHUB_SHA:0:7}-cp313-cp313-emscripten_4_0_9_wasm32.whl
|
FILE=`echo dist/ifcopenshell-*.whl`
|
||||||
|
NEW_FILE=`echo $FILE | sed "s/$VERSION/$VERSION+${GITHUB_SHA:0:7}/"`
|
||||||
|
mv $FILE $NEW_FILE
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
|||||||
+19
-9
@@ -1,11 +1,21 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, Extension, find_packages
|
||||||
|
|
||||||
setup(name='ifcopenshell',
|
setup(
|
||||||
version='0.8.0',
|
name="ifcopenshell",
|
||||||
description='IfcOpenShell is an open source (LGPL) software library for working with the Industry Foundation Classes (IFC) file format.',
|
version="0.8.0",
|
||||||
author='Thomas Krijnen',
|
description=(
|
||||||
author_email='thomas@aecgeeks.com',
|
"IfcOpenShell is an open source (LGPL) software library "
|
||||||
url='http://ifcopenshell.org',
|
"for working with the Industry Foundation Classes (IFC) file format."
|
||||||
packages=find_packages(),
|
),
|
||||||
package_data={'ifcopenshell': ['util/schema/*.json', 'util/schema/*.ifc'], '': ['*.so', '*.json', '*.ifc']},
|
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=[])],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user