Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Jan 8, 2025
1 parent d45eacc commit 670c612
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
TALIB_C_VER: ${{ github.ref_name }}
TALIB_PY_VER: 0.6.0
TALIB_PY_VER: ${{ github.ref_name }}

jobs:
build_manylinux_x86_64:
Expand Down
17 changes: 0 additions & 17 deletions tools/build_wheel_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,13 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Download TA-Lib Python
curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-${TALIB_PY_VER}.zip
if [ $? -ne 0 ]; then
echo "Failed to download TA-Lib Python library"
exit 1
fi

# Unzip TA-Lib C
unzip -q talib-c.zip
if [ $? -ne 0 ]; then
echo "Failed to extract TA-Lib C library"
exit 1
fi

# Unzip TA-Lib Python
unzip -q talib-python.zip -d ta-lib-python
if [ $? -ne 0 ]; then
echo "Failed to extract TA-Lib Python library"
exit 1
fi

mv ta-lib-python/ta-lib-python-TA_Lib-${TALIB_PY_VER}/* .
rm -r ta-lib-python

# cd to TA-Lib C
cd ta-lib-${TALIB_C_VER}

Expand Down
17 changes: 0 additions & 17 deletions tools/build_wheel_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,13 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Download TA-Lib Python
curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-${TALIB_PY_VER}.zip
if [ $? -ne 0 ]; then
echo "Failed to download TA-Lib Python library"
exit 1
fi

# Unzip TA-Lib C
unzip -q talib-c.zip
if [ $? -ne 0 ]; then
echo "Failed to extract TA-Lib C library"
exit 1
fi

# Unzip TA-Lib Python
unzip -q talib-python.zip -d ta-lib-python
if [ $? -ne 0 ]; then
echo "Failed to extract TA-Lib Python library"
exit 1
fi

mv ta-lib-python/ta-lib-python-TA_Lib-${TALIB_PY_VER}/* .
rm -r ta-lib-python

# cd to TA-Lib C
cd ta-lib-${TALIB_C_VER}

Expand Down
6 changes: 0 additions & 6 deletions tools/build_wheel_windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@ set CMAKE_CONFIGURATION_TYPES=Release
curl -L -o talib-c.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v%TALIB_C_VER%.zip
if errorlevel 1 exit /B 1

curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-%TALIB_PY_VER%.zip
if errorlevel 1 exit /B 1

tar -xzvf talib-c.zip
if errorlevel 1 exit /B 1

tar -xf talib-python.zip --strip-components=1
if errorlevel 1 exit /B 1

:: git apply --verbose --binary talib.diff
:: if errorlevel 1 exit /B 1

Expand Down

0 comments on commit 670c612

Please sign in to comment.