mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fix #4589. Symlink entire ifcopenshell dir for dev setups.
This commit is contained in:
@@ -92,13 +92,14 @@ For Linux or Mac:
|
|||||||
$ ln -s $PWD/src/blenderbim/blenderbim/tool $BLENDER_ADDON_PATH/tool
|
$ ln -s $PWD/src/blenderbim/blenderbim/tool $BLENDER_ADDON_PATH/tool
|
||||||
$ ln -s $PWD/src/blenderbim/blenderbim/bim $BLENDER_ADDON_PATH/bim
|
$ ln -s $PWD/src/blenderbim/blenderbim/bim $BLENDER_ADDON_PATH/bim
|
||||||
|
|
||||||
# Remove the IfcOpenShell dependency Python code
|
# Copy over compiled IfcOpenShell files
|
||||||
$ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/api
|
$ cp $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/*_wrapper* $PWD/src/ifcopenshell-python/ifcopenshell/
|
||||||
$ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/util
|
|
||||||
|
# Remove the IfcOpenShell dependency
|
||||||
|
$ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell
|
||||||
|
|
||||||
# Replace them with links to the Git repository
|
# Replace them with links to the Git repository
|
||||||
$ ln -s $PWD/src/ifcopenshell-python/ifcopenshell/api $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/api
|
$ ln -s $PWD/src/ifcopenshell-python/ifcopenshell $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell
|
||||||
$ ln -s $PWD/src/ifcopenshell-python/ifcopenshell/util $BLENDER_ADDON_PATH/libs/site/packages/ifcopenshell/util
|
|
||||||
|
|
||||||
# Remove and link other IfcOpenShell utilities
|
# Remove and link other IfcOpenShell utilities
|
||||||
$ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifccsv.py
|
$ rm -r $BLENDER_ADDON_PATH/libs/site/packages/ifccsv.py
|
||||||
@@ -153,21 +154,19 @@ Before running it follow the instructions descibed after `rem` tags.
|
|||||||
rd /S /Q "%blenderbim%\tool\"
|
rd /S /Q "%blenderbim%\tool\"
|
||||||
rd /S /Q "%blenderbim%\bim\"
|
rd /S /Q "%blenderbim%\bim\"
|
||||||
|
|
||||||
|
|
||||||
echo Replacing them with links to the Git repository...
|
echo Replacing them with links to the Git repository...
|
||||||
mklink /D "%blenderbim%\core" "%cd%\src\blenderbim\blenderbim\core"
|
mklink /D "%blenderbim%\core" "%cd%\src\blenderbim\blenderbim\core"
|
||||||
mklink /D "%blenderbim%\tool" "%cd%\src\blenderbim\blenderbim\tool"
|
mklink /D "%blenderbim%\tool" "%cd%\src\blenderbim\blenderbim\tool"
|
||||||
mklink /D "%blenderbim%\bim" "%cd%\src\blenderbim\blenderbim\bim"
|
mklink /D "%blenderbim%\bim" "%cd%\src\blenderbim\blenderbim\bim"
|
||||||
|
|
||||||
|
echo Copy over compiled IfcOpenShell files...
|
||||||
|
copy %blenderbim%\libs\site\packages\ifcopenshell\*_wrapper* %cd%\src\ifcopenshell-python\ifcopenshell\
|
||||||
|
|
||||||
echo Remove the IfcOpenShell dependency Python code...
|
echo Remove the IfcOpenShell dependency...
|
||||||
rd /S /Q "%blenderbim%\libs\site\packages\ifcopenshell\api"
|
rd /S /Q "%blenderbim%\libs\site\packages\ifcopenshell"
|
||||||
rd /S /Q "%blenderbim%\libs\site\packages\ifcopenshell\util"
|
|
||||||
|
|
||||||
|
echo Replace them with links to the Git repository...
|
||||||
echo Replacing them with links to the Git repository...
|
mklink /D "%blenderbim%\libs\site\packages\ifcopenshell" "%cd%\src\ifcopenshell-python\ifcopenshell"
|
||||||
mklink /D "%blenderbim%\libs\site\packages\ifcopenshell\api" "%cd%\src\ifcopenshell-python\ifcopenshell\api"
|
|
||||||
mklink /D "%blenderbim%\libs\site\packages\ifcopenshell\util" "%cd%\src\ifcopenshell-python\ifcopenshell\util"
|
|
||||||
|
|
||||||
echo Remove and link other IfcOpenShell utilities...
|
echo Remove and link other IfcOpenShell utilities...
|
||||||
del "%blenderbim%\libs\site\packages\ifccsv.py"
|
del "%blenderbim%\libs\site\packages\ifccsv.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user