REM clean BUILD directory
if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
mkdir %BUILD_DIR%
-
cd %SOURCE_DIR%
-
+xcopy * %BUILD_DIR%\ /E /I /Q
+cd %BUILD_DIR%
+del /Q /S %BUILD_DIR%\src\pyfmi\*.c
set INSTALL_LIB=%PRODUCT_INSTALL%\lib\python%PYTHON_VERSION%\site-packages
if NOT exist "%INSTALL_LIB%" mkdir %INSTALL_LIB%
set PYTHONPATH=%INSTALL_LIB%;%PYTHONPATH%
echo.
echo ##########################################################################
-echo *** Launching "python.exe setup.py build"
+echo *** Launching python.exe setup.py build
echo ##########################################################################
%PYTHON_ROOT_DIR%\python.exe setup.py build --build-base %BUILD_DIR% --build-temp %BUILD_DIR%
echo.
echo ##########################################################################
-echo *** Launching "python.exe setup.py install"
+echo *** Launching python.exe setup.py install
echo ##########################################################################
+SET SETUP_EXTRA_OPTIONS=--old-and-unmanageable
+if %PYTHON_VERSION% == 3.6 (
+ SET SETUP_EXTRA_OPTIONS=
+)
+
if %INSTALL_CENTRALLY% == 1 (
- %PYTHON_ROOT_DIR%\python.exe setup.py install
+ %PYTHON_ROOT_DIR%\python.exe setup.py install %SETUP_EXTRA_OPTIONS%
) else (
- %PYTHON_ROOT_DIR%\python.exe setup.py install --prefix=%PRODUCT_INSTALL% --install-lib=%INSTALL_LIB%
+ %PYTHON_ROOT_DIR%\python.exe setup.py install --prefix=%PRODUCT_INSTALL% --install-lib=%INSTALL_LIB% %SETUP_EXTRA_OPTIONS%
)
if NOT %ERRORLEVEL% == 0 (