Skip to content

Commit fdb9a0c

Browse files
authored
build: remove python binding from release (#476)
1 parent f091371 commit fdb9a0c

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ jobs:
541541
prerelease: ${{ needs.meta.outputs.is_pre_release == 'true' }}
542542

543543
- name: Create issue if failed to release
544-
if: failure() || steps.nuget.outputs.failed || steps.pip.outputs.failed || ${{ steps.nodejs.outputs.id == 'undefined' }}
544+
if: steps.nuget.outputs.failed || steps.pip.outputs.failed || ${{ steps.nodejs.outputs.id == 'undefined' }}
545545
uses: actions-cool/issues-helper@v3
546546
with:
547547
actions: "create-issue"
@@ -551,5 +551,3 @@ jobs:
551551
${{ steps.nuget.outputs.failed && '- nuget @moomiji' || '' }}
552552
${{ steps.pip.outputs.failed && '- pip @MistEO' || '' }}
553553
${{ steps.nodejs.outputs.id == 'undefined' && '- nodejs @neko-para' || '' }}
554-
555-
cc @MistEO

source/binding/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ if(BUILD_NODEJS_BINDING)
66
endif()
77
endif()
88

9-
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Python" DESTINATION binding)
10-
11-
# install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cpp" DESTINATION binding)
9+
# install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Python" DESTINATION binding)

tools/pip_pack/pip_pack.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,18 @@ def pack_whl(whl_tag: str):
174174
def copy_base():
175175
print("Copying base...", end="")
176176

177-
asset_dir = os.listdir(ASSETS_PATH)[0]
178-
asset_path = os.path.join(ASSETS_PATH, asset_dir)
179-
src_path = os.path.join(asset_path, "binding", "Python")
177+
PROJECT_PATH = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
178+
179+
src_path = os.path.join(PROJECT_PATH, "source", "binding", "Python")
180180
shutil.copytree(src_path, SRC_DIR)
181181

182-
readme_path = os.path.join(asset_path, "README.md")
182+
readme_path = os.path.join(PROJECT_PATH, "README.md")
183183
shutil.copy(readme_path, "README.md")
184184

185-
license_path = os.path.join(asset_path, "LICENSE.md")
185+
readme_path = os.path.join(PROJECT_PATH, "README_en.md")
186+
shutil.copy(readme_path, "README_en.md")
187+
188+
license_path = os.path.join(PROJECT_PATH, "LICENSE.md")
186189
shutil.copy(license_path, "LICENSE.md")
187190

188191
print("done")

0 commit comments

Comments
 (0)