2019-11-25 07:49:13 +11:00
VERSION := ` date '+%y%m%d' `
2021-03-06 09:36:31 +11:00
PYVERSION := py37
2019-12-16 05:44:52 +01:00
i f e q ( $( PLATFORM ) , w i n )
2021-03-06 09:36:31 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2019-12-16 05:44:52 +01:00
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/win-64/pythonocc-core-0.17.3-py37he980bc4_10.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/win-64/oce-0.17.2-he980bc4_14.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/2019.5/download/win-64/tbb-2019.5-he980bc4_0.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
PYTHONOCC_URL := https://anaconda.org/conda-forge/pythonocc-core/7.4.1/download/win-64/pythonocc-core-7.4.1-py39h3d1c7c5_0.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/conda-forge/occt/7.4.0/download/win-64/occt-7.4.0-h823b557_3.tar.bz2
TBB_URL := https://anaconda.org/conda-forge/tbb/2020.2/download/win-64/tbb-2020.2-h2d74725_4.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
2019-12-16 05:44:52 +01:00
e n d i f
2021-03-06 09:36:31 +11:00
2019-12-16 05:44:52 +01:00
i f e q ( $( PLATFORM ) , m a c o s )
2021-03-06 09:36:31 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2019-12-16 05:44:52 +01:00
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/osx-64/pythonocc-core-0.17.3-py37h04f5b5a_10.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/osx-64/oce-0.17.2-h04f5b5a_12.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/4.3.6/download/osx-64/tbb-4.3.6-0.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
PYTHONOCC_URL := https://anaconda.org/conda-forge/pythonocc-core/7.4.1/download/osx-64/pythonocc-core-7.4.1-py39h4d29fe3_0.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/conda-forge/occt/7.4.0/download/osx-64/occt-7.4.0-hb9b6dc7_3.tar.bz2
TBB_URL := https://anaconda.org/conda-forge/tbb/2020.2/download/osx-64/tbb-2020.2-h940c156_4.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
2019-12-16 05:44:52 +01:00
e n d i f
2021-03-06 09:36:31 +11:00
2019-12-16 05:44:52 +01:00
i f e q ( $( PLATFORM ) , l i n u x )
2021-03-06 09:36:31 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2019-12-16 05:44:52 +01:00
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/linux-64/pythonocc-core-0.17.3-py37h6bb024c_10.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/linux-64/oce-0.17.2-h6bb024c_14.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/4.3.6/download/linux-64/tbb-4.3.6-0.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
PYTHONOCC_URL := https://anaconda.org/conda-forge/pythonocc-core/7.4.1/download/linux-64/pythonocc-core-7.4.1-py39h465cb30_0.tar.bz2
2021-03-06 14:02:22 +11:00
OCE_URL := https://anaconda.org/conda-forge/occt/7.4.0/download/linux-64/occt-7.4.0-h9121d39_3.tar.bz2
TBB_URL := https://anaconda.org/conda-forge/tbb/2020.2/download/linux-64/tbb-2020.2-h4bd325d_4.tar.bz2
2021-03-06 09:36:31 +11:00
e n d i f
2019-12-16 05:44:52 +01:00
e n d i f
2019-11-25 07:49:13 +11:00
2019-10-06 19:59:41 +11:00
.PHONY : dist
dist :
i f n d e f P L A T F O R M
$( error PLATFORM is not set )
e n d i f
r m - r f d i s t
2019-12-16 05:44:52 +01:00
m k d i r - p d i s t / w o r k i n g
m k d i r - p d i s t / b l e n d e r b i m
c p - r b l e n d e r b i m / * d i s t / b l e n d e r b i m /
2020-07-27 21:01:16 +10:00
# Provides IfcOpenShell Python functionality
2021-03-06 09:36:31 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2021-04-04 12:54:08 +10:00
cd dist/working && wget https : //s 3.amazonaws .com /ifcopenshell -builds /ifcblender -python -37-v 0.6.0-ff 7219b -$( PLATFORM ) 64.zip
2021-03-06 09:36:31 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
2021-04-04 12:54:08 +10:00
cd dist/working && wget https : //s 3.amazonaws .com /ifcopenshell -builds /ifcblender -python -39-v 0.6.0-ff 7219b -$( PLATFORM ) 64.zip
2021-03-06 09:36:31 +11:00
e n d i f
2019-12-16 05:44:52 +01:00
c d d i s t / w o r k i n g & & u n z i p i f c b l e n d e r *
2020-04-11 10:37:47 +10:00
c p - r d i s t / w o r k i n g / i o _ i m p o r t _ s c e n e _ i f c / i f c o p e n s h e l l d i s t / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s /
2021-03-06 09:36:31 +11:00
2020-03-19 10:33:31 +11:00
# See bug #812
2021-03-26 20:49:57 +11:00
cd dist/working && wget https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.6.0/src/blenderbim/occ_utils.py
2020-04-11 10:37:47 +10:00
cd dist/working && mv occ_utils.py ../blenderbim/libs/site/packages/ifcopenshell/geom/occ_utils.py
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2021-03-04 20:54:31 +11:00
# Provides IfcConvert for construction documentation
2021-03-06 09:36:31 +11:00
mkdir dist/working
2021-03-04 20:54:31 +11:00
cd dist/working && wget https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.6.0-517b819-$( PLATFORM) 64.zip
cd dist/working && unzip IfcConvert*
2021-03-06 14:02:22 +11:00
i f e q ( $( PLATFORM ) , w i n )
c p - r d i s t / w o r k i n g / I f c C o n v e r t . e x e d i s t / b l e n d e r b i m / l i b s /
e l s e
2021-03-04 20:54:31 +11:00
c p - r d i s t / w o r k i n g / I f c C o n v e r t d i s t / b l e n d e r b i m / l i b s /
2021-03-06 14:02:22 +11:00
e n d i f
2021-03-04 20:54:31 +11:00
r m - r f d i s t / w o r k i n g
2020-07-27 21:01:16 +10:00
# Provides Python OCC functionality for cutting IFC geometry for construction documentation
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget $( PYTHONOCC_URL)
cd dist/working && tar -xjvf pythonocc-core*
i f e q ( $( PLATFORM ) , w i n )
2020-04-11 10:37:47 +10:00
c d d i s t / w o r k i n g & & c p - r L i b / s i t e - p a c k a g e s / O C C . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s /
2019-12-16 05:44:52 +01:00
e l s e
2021-03-06 09:36:31 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2020-04-11 10:37:47 +10:00
c d d i s t / w o r k i n g & & c p - r l i b / p y t h o n 3 . 7 / s i t e - p a c k a g e s / O C C . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s /
2021-03-06 09:36:31 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
c d d i s t / w o r k i n g & & c p - r l i b / p y t h o n 3 . 9 / s i t e - p a c k a g e s / O C C . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s /
e n d i f
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
2020-07-27 21:01:16 +10:00
# Required by Python OCC
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget $( OCE_URL)
2021-03-06 14:42:30 +11:00
cd dist/working && tar -xjvf oc*
2019-12-16 05:44:52 +01:00
i f e q ( $( PLATFORM ) , w i n )
2021-03-06 14:42:30 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2020-04-11 10:37:47 +10:00
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s / O C C /
2021-03-06 14:42:30 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s / O C C / C o r e /
e n d i f
2019-12-16 05:44:52 +01:00
e l s e
2020-04-07 12:02:44 +10:00
# Unix Conda builds of PythonOCC expect OCE libs to have a RPATH of ../../../
2020-04-11 10:37:47 +10:00
cd dist/working && cp -r lib/* ../blenderbim/libs/
2020-04-11 11:11:53 +10:00
e n d i f
i f e q ( $( PLATFORM ) , l i n u x )
r m - r f d i s t / b l e n d e r b i m / l i b s / o c e - 0 . 1 7
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
2020-07-27 21:01:16 +10:00
# Required by OpenCascade
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget $( TBB_URL)
cd dist/working && tar -xjvf tbb*
i f e q ( $( PLATFORM ) , w i n )
2021-03-06 14:42:30 +11:00
i f e q ( $( PYVERSION ) , p y 3 7 )
2020-04-11 10:37:47 +10:00
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s / O C C /
2021-03-06 14:42:30 +11:00
e n d i f
i f e q ( $( PYVERSION ) , p y 3 9 )
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / b l e n d e r b i m / l i b s / s i t e / p a c k a g e s / O C C / C o r e /
e n d i f
2019-12-16 05:44:52 +01:00
e l s e
2020-04-11 10:37:47 +10:00
c d d i s t / w o r k i n g & & c p - r l i b / * . . / b l e n d e r b i m / l i b s /
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
2019-12-19 05:05:57 +01:00
i f e q ( $( PLATFORM ) , m a c o s )
m k d i r d i s t / w o r k i n g
cd dist/working && wget https : //blenderbim .org /builds /patch -blender 28-bim -macos .zip
cd dist/working && unzip patch*
2020-04-11 10:37:47 +10:00
cd dist/working && cp -r *.dylib ../blenderbim/libs/
2019-12-19 05:05:57 +01:00
rm -rf dist/working
e n d i f
2021-01-26 12:54:27 +11:00
# Provides dependencies that are part of IfcOpenShell
mkdir dist/working
cd dist/working && wget https://github.com/IfcOpenShell/IfcOpenShell/archive/v0.6.0.zip
cd dist/working && unzip v0.6.0.zip
# IfcOpenBot sometimes lags behind, so we hotfix the Python utilities
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcopenshell-python/ifcopenshell/util/* dist/blenderbim/libs/site/packages/ifcopenshell/util/
2021-04-04 12:59:39 +10:00
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcopenshell-python/ifcopenshell/api/* dist/blenderbim/libs/site/packages/ifcopenshell/api/
2021-01-26 12:54:27 +11:00
# Provides bcf functionality
cp -r dist/working/IfcOpenShell-0.6.0/src/bcf/bcf dist/blenderbim/libs/site/packages/
# Provides IFCClash functionality
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcclash/* dist/blenderbim/libs/site/packages/
# Provides BIMTester functionality
2021-03-21 20:04:24 +11:00
cd dist/working && python -m venv env
2021-03-21 20:07:40 +11:00
cd dist/working && . env/bin/activate && pip install pybabel
2021-03-21 20:13:27 +11:00
cd dist/working && . env/bin/activate && pip install babel
2021-03-21 20:10:53 +11:00
cd dist/working && . env/bin/activate && ./env/bin/pybabel compile -d ./IfcOpenShell-0.6.0/src/ifcbimtester/bimtester/locale/
2021-01-26 12:54:27 +11:00
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcbimtester/bimtester dist/blenderbim/libs/site/packages/
# Provides IFCCOBie functionality
cp -r dist/working/IfcOpenShell-0.6.0/src/ifccobie/* dist/blenderbim/libs/site/packages/
# Provides IFCDiff functionality
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcdiff/* dist/blenderbim/libs/site/packages/
# Provides IFCCSV functionality
cp -r dist/working/IfcOpenShell-0.6.0/src/ifccsv/* dist/blenderbim/libs/site/packages/
# Provides IFCPatch functionality
2021-02-23 18:55:42 +11:00
cp -r dist/working/IfcOpenShell-0.6.0/src/ifcpatch/ifcpatch dist/blenderbim/libs/site/packages/
2021-01-26 12:54:27 +11:00
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Provides Mustache templating in construction documentation
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz
cd dist/working && tar -xzvf pystache*
2020-04-11 10:37:47 +10:00
cd dist/working/pystache-0.5.4/ && python setup.py build && cp -r build/lib/pystache ../../blenderbim/libs/site/packages/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Provides SVG export in construction documentation
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/79/e8/7eb2ba188eda14a4b47e33b51f3b4978985f4116655c699bcd18c79279b5/svgwrite-1.3.1.zip
cd dist/working && unzip svgwrite*
2020-04-11 10:37:47 +10:00
cp -r dist/working/svgwrite-1.3.1/svgwrite dist/blenderbim/libs/site/packages/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2021-04-21 09:14:57 +10:00
# Provides fuzzy date parsing for construction sequencing
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/be/ed/5bbc91f03fa4c839c4c7360375da77f9659af5f7086b7a7bdda65771c8e0/python-dateutil-2.8.1.tar.gz
cd dist/working && tar -xzvf python-dateutil*
cp -r dist/working/python-dateutil-2.8.1/dateutil dist/blenderbim/libs/site/packages/
rm -rf dist/working
2021-04-21 12:57:31 +10:00
# Provides jsgantt-improved supports for web-based construction sequencing gantt charts
mkdir dist/working
cd dist/working && wget https://raw.githubusercontent.com/jsGanttImproved/jsgantt-improved/master/dist/jsgantt.js
cd dist/working && wget https://raw.githubusercontent.com/jsGanttImproved/jsgantt-improved/master/dist/jsgantt.css
cd dist/working && mv jsgantt* dist/blenderbim/bim/data/gantt/
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Required by IFCDiff
2020-01-07 14:42:03 +11:00
mkdir dist/working
cd dist/working && wget https://github.com/Moult/deepdiff/archive/master.zip
cd dist/working && unzip master.zip
2020-04-11 10:37:47 +10:00
cp -r dist/working/deepdiff-master/deepdiff dist/blenderbim/libs/site/packages/
2020-01-07 14:42:03 +11:00
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Required by deepdiff
2020-01-07 14:42:03 +11:00
mkdir dist/working
2020-01-09 06:00:30 +01:00
cd dist/working && wget https://files.pythonhosted.org/packages/00/55/ce2cbc6d64034b30cad81a29ba61bdba456f190f5e83c09831304bf68d6b/jsonpickle-1.2.tar.gz
2020-01-07 14:42:03 +11:00
cd dist/working && tar -xzvf jsonpickle*
2020-04-11 10:37:47 +10:00
cp -r dist/working/jsonpickle-1.2/jsonpickle dist/blenderbim/libs/site/packages/
2020-01-07 14:42:03 +11:00
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Required by deepdiff
2020-01-07 14:42:03 +11:00
mkdir dist/working
2020-01-09 06:00:30 +01:00
cd dist/working && wget https://files.pythonhosted.org/packages/a3/b7/d4d69641cbe707a45c23b190f2d717466ba5accc4c70b5f7a8a450387895/ordered-set-3.1.1.tar.gz
2020-01-07 14:42:03 +11:00
cd dist/working && tar -xzvf ordered-set*
2020-04-11 10:37:47 +10:00
cp -r dist/working/ordered-set-3.1.1/ordered_set.py dist/blenderbim/libs/site/packages/
2020-01-07 14:42:03 +11:00
rm -rf dist/working
2020-07-27 21:01:16 +10:00
# Required by lark
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/00/32/8076fa13e832bb4dcff379f18f228e5a53412be0631808b9ca2610c0f566/pyparsing-2.4.5.tar.gz
cd dist/working && tar -xzvf pyparsing*
2020-04-11 10:37:47 +10:00
cp -r dist/working/pyparsing-2.4.5/pyparsing.py dist/blenderbim/libs/site/packages/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2020-12-18 16:28:17 +11:00
# Required by bcf
2020-03-20 21:21:23 +11:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/bb/41/ad9ce53bb978b68af8ae415293cafc89b165b8ad55a593725299dca76729/xmlschema-1.1.1.tar.gz
cd dist/working && tar -xzvf xmlschema*
2020-04-11 10:37:47 +10:00
cp -r dist/working/xmlschema-1.1.1/xmlschema dist/blenderbim/libs/site/packages/
2020-03-20 21:21:23 +11:00
rm -rf dist/working
2021-01-26 12:54:27 +11:00
# Required by bcf
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/12/f9/f9960222d5274944b01391749e55e4dcdf28d8f0c108b64ac931ceff6fdb/elementpath-1.4.3.tar.gz
cd dist/working && tar -xzvf elementpath*
cp -r dist/working/elementpath-1.4.3/elementpath dist/blenderbim/libs/site/packages/
rm -rf dist/working
# Required by bcf
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz
cd dist/working && tar -xzvf six*
cp -r dist/working/six-1.14.0/six.py dist/blenderbim/libs/site/packages/
2020-03-21 21:54:53 +11:00
rm -rf dist/working
2020-07-23 17:02:48 +10:00
# Required by IFCCSV and ifcopenshell.util.selector
2020-04-26 14:41:38 +10:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/18/4d/8d522136c37d9e1ea74062b41b8d5e1318ebf45063ae46ce72ed60af223b/lark-parser-0.8.5.tar.gz
cd dist/working && tar -xzvf lark-parser*
cp -r dist/working/lark-parser-0.8.5/lark dist/blenderbim/libs/site/packages/
rm -rf dist/working
2020-07-23 17:02:48 +10:00
# Required by IFCClash
2021-03-07 10:51:30 +11:00
i f e q ( $( PLATFORM ) , l i n u x )
2021-03-09 08:36:15 +11:00
m k d i r d i s t / w o r k i n g
2020-05-16 12:54:26 +10:00
cd dist/working && wget https : //files .pythonhosted .org /packages /0c /fa /00d 85f 893b 02289e 2942849d 97f 8818dde 8e 2111182e 825fb 3a 735677791/python_fcl -0.0.12-cp 37-cp 37m -manylinux 1_x 86_ 64.whl
2021-03-09 08:36:15 +11:00
cd dist/working && unzip python_fcl*
cp -r dist/working/fcl dist/blenderbim/libs/site/packages/
rm -rf dist/working
2020-05-16 12:54:26 +10:00
e n d i f
i f e q ( $( PLATFORM ) , w i n )
2021-03-09 08:36:15 +11:00
m k d i r d i s t / w o r k i n g
2020-05-17 08:34:50 +10:00
cd dist/working && wget https : //files .pythonhosted .org /packages /19/e 6/6e 9f 33fb 59e 8f 27c 0e 1592bd 26e 644bc 92b 85c 942b 072b 2d 3854105d 5887/python_fcl_win 32-0.0.12.post 3-py 3-none -win_amd 64.whl
cd dist/working && unzip python_fcl*
2020-05-16 12:54:26 +10:00
cp -r dist/working/fcl dist/blenderbim/libs/site/packages/
2021-03-08 22:11:47 +01:00
rm -rf dist/working
2021-03-09 08:36:15 +11:00
e n d i f
2021-03-08 22:11:47 +01:00
2020-07-20 22:08:39 +10:00
# Required by BIMTester
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/c8/4b/d0a8c23b6c8985e5544ea96d27105a273ea22051317f850c2cdbf2029fe4/behave-1.2.6.tar.gz
cd dist/working && tar -xzvf behave*
cd dist/working/behave-1.2.6/ && cp -r behave ../../blenderbim/libs/site/packages/
2021-03-21 12:07:11 +11:00
# See bug #1294
cd dist/working/ && wget https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.6.0/src/ifcbimtester/patch/model_core.patch
cd dist/working/ && wget https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.6.0/src/ifcbimtester/patch/runner_util.patch
2021-03-21 12:13:42 +11:00
cd dist/working/ && patch ../blenderbim/libs/site/packages/behave/model_core.py < model_core.patch
cd dist/working/ && patch ../blenderbim/libs/site/packages/behave/runner_util.py < runner_util.patch
2020-07-20 22:08:39 +10:00
rm -rf dist/working
# Required by behave
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/f4/65/220bb4075fddb09d5b3ea2c1c1fa66c1c72be9361ec187aab50fa161e576/parse-1.15.0.tar.gz
cd dist/working && tar -xzvf parse*
cd dist/working/parse-1.15.0/ && cp parse.py ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by behave
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/2e/79/81bebd1b0446d46733db99d74543b4bb80646ef4c988584bae0862e706bc/parse_type-0.5.2.tar.gz
cd dist/working && tar -xzvf parse_type*
cd dist/working/parse_type-0.5.2/ && cp -r parse_type ../../blenderbim/libs/site/packages/
rm -rf dist/working
2020-07-23 17:02:48 +10:00
# Required by IFCCOBie for XLSX support
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/0c/bc/82d6783f83f65f56d8b77d052773c4a2f952fa86385f0cd54e1e006658d7/XlsxWriter-1.2.9.tar.gz
cd dist/working && tar -xzvf XlsxWriter*
cd dist/working/XlsxWriter-1.2.9/ && cp -r xlsxwriter ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by IFCCOBie for ODS support
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/97/73/8ade73f6749177003f7ce3304f524774adda96e6aaab30ea79fd8fda7934/odfpy-1.4.1.tar.gz
cd dist/working && tar -xzvf odfpy*
cd dist/working/odfpy-1.4.1/ && cp -r odf ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by odfpy
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/a4/5f/f8aa58ca0cf01cbcee728abc9d88bfeb74e95e6cb4334cfd5bed5673ea77/defusedxml-0.6.0.tar.gz
cd dist/working && tar -xzvf defusedxml*
cd dist/working/defusedxml-0.6.0/ && cp -r defusedxml ../../blenderbim/libs/site/packages/
rm -rf dist/working
2021-03-01 10:57:48 +11:00
# Required by augin
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/76/b4/b7baffbda025efd5dc8fcd8d2e953e3aa939c236a484084fa8f4c3588ee9/boto3-1.17.17.tar.gz
cd dist/working && tar -xzvf boto3*
cd dist/working/boto3-1.17.17/ && cp -r boto3 ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by boto3
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/7f/2e/e02fdfd0f0377c4e44e61de27b05d5cfe93575770661ef9ded80ed90fa88/botocore-1.20.17.tar.gz
cd dist/working && tar -xzvf botocore*
cd dist/working/botocore-1.20.17/ && cp -r botocore ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by boto3
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz
cd dist/working && tar -xzvf jmespath*
cd dist/working/jmespath-0.10.0/ && cp -r jmespath ../../blenderbim/libs/site/packages/
rm -rf dist/working
# Required by boto3
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/08/e1/3ee2096ebaeeb8c186d20ed16c8faf4a503913e5c9a0e14cd6b8ffc405a3/s3transfer-0.3.4.tar.gz
cd dist/working && tar -xzvf s3transfer*
cd dist/working/s3transfer-0.3.4/ && cp -r s3transfer ../../blenderbim/libs/site/packages/
rm -rf dist/working
2020-08-09 18:10:30 +10:00
# Provides IFCJSON functionality
mkdir dist/working
cd dist/working && wget https://github.com/IFCJSON-Team/IFC2JSON_python/archive/master.zip
cd dist/working && unzip master.zip
2020-11-15 22:15:53 +11:00
cp -r dist/working/IFC2JSON_python-master/file_converters/ifcjson dist/blenderbim/libs/site/packages/
2020-08-09 18:10:30 +10:00
rm -rf dist/working
2019-11-25 07:49:13 +11:00
cd dist/blenderbim && sed -i " s/999999/ $( VERSION) / " __init__.py
2021-03-06 14:42:30 +11:00
cd dist && zip -r blender28-bim-$( VERSION) -$( PYVERSION) -$( PLATFORM) .zip ./*
2019-12-19 04:35:19 +01:00
rm -rf dist/blenderbim
2019-10-06 19:59:41 +11:00
.PHONY : clean
clean :
rm -rf dist