Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
copy @cpcloud's solution to build numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Nov 24, 2014
1 parent 62e0710 commit 5286158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
15 changes: 3 additions & 12 deletions conda.recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
@echo off

SET BLD_DIR=%CD%
cd /D "%RECIPE_DIR%\.."

"%PYTHON%" setup.py install

REM # X.X.X.dev builds
FOR /F "delims=" %%i IN ('git describe --tags') DO set BCOLZ_VERSION=%%i
set _result=%BCOLZ_VERSION:-=_%

echo %_result%>__conda_version__.txt

copy __conda_version__.txt "%BLD_DIR%"

if errorlevel 1 exit 1

echo.%BCOLZ_VERSION% | %PYTHON% .\conda.recipe\version.py > %SRC_DIR%\__conda_version__.txt
%PYTHON% setup.py --quiet install
5 changes: 2 additions & 3 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ SRC_DIR=$RECIPE_DIR/..
pushd $SRC_DIR

# X.X.X.dev builds
version=`git describe --tags`
u_version=`echo $version | tr "-" _`
u_version=`git describe --tags | $PYTHON $SRC_DIR/conda.recipe/version.py`

echo $u_version> __conda_version__.txt
echo $u_version > __conda_version__.txt

cp __conda_version__.txt $BLD_DIR

Expand Down

0 comments on commit 5286158

Please sign in to comment.