3 echo ##########################################################################
\r
4 echo python-dateutil %VERSION%
\r
5 echo ##########################################################################
\r
7 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
\r
8 REM clean BUILD directory
\r
9 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
\r
14 set dir_lib=%PRODUCT_INSTALL%\lib\site-packages
\r
15 if NOT exist "%dir_lib%" mkdir "%dir_lib%"
\r
16 set PYTHONPATH=%dir_lib%;%PYTHONPATH%
\r
19 echo --------------------------------------------------------------------------
\r
20 echo Launching "python.exe setup.py build"
\r
21 echo --------------------------------------------------------------------------
\r
23 %PYTHON_ROOT_DIR%\python.exe setup.py build --build-base %BUILD_DIR% --build-temp %BUILD_DIR%
\r
24 if NOT %ERRORLEVEL% == 0 (
\r
25 echo ERROR on setup.py build
\r
30 echo --------------------------------------------------------------------------
\r
31 echo Launching "python.exe setup.py install"
\r
32 echo --------------------------------------------------------------------------
\r
34 %PYTHON_ROOT_DIR%\python.exe setup.py install --prefix=%PRODUCT_INSTALL% --install-lib=%dir_lib%
\r
35 if NOT %ERRORLEVEL% == 0 (
\r
36 echo ERROR on setup.py install
\r