Skip to content

Commit

Permalink
build: remove python binding from release (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO authored Dec 19, 2024
1 parent f091371 commit fdb9a0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ jobs:
prerelease: ${{ needs.meta.outputs.is_pre_release == 'true' }}

- name: Create issue if failed to release
if: failure() || steps.nuget.outputs.failed || steps.pip.outputs.failed || ${{ steps.nodejs.outputs.id == 'undefined' }}
if: steps.nuget.outputs.failed || steps.pip.outputs.failed || ${{ steps.nodejs.outputs.id == 'undefined' }}
uses: actions-cool/issues-helper@v3
with:
actions: "create-issue"
Expand All @@ -551,5 +551,3 @@ jobs:
${{ steps.nuget.outputs.failed && '- nuget @moomiji' || '' }}
${{ steps.pip.outputs.failed && '- pip @MistEO' || '' }}
${{ steps.nodejs.outputs.id == 'undefined' && '- nodejs @neko-para' || '' }}
cc @MistEO
4 changes: 1 addition & 3 deletions source/binding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ if(BUILD_NODEJS_BINDING)
endif()
endif()

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Python" DESTINATION binding)

# install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cpp" DESTINATION binding)
# install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Python" DESTINATION binding)
13 changes: 8 additions & 5 deletions tools/pip_pack/pip_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,18 @@ def pack_whl(whl_tag: str):
def copy_base():
print("Copying base...", end="")

asset_dir = os.listdir(ASSETS_PATH)[0]
asset_path = os.path.join(ASSETS_PATH, asset_dir)
src_path = os.path.join(asset_path, "binding", "Python")
PROJECT_PATH = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)

src_path = os.path.join(PROJECT_PATH, "source", "binding", "Python")
shutil.copytree(src_path, SRC_DIR)

readme_path = os.path.join(asset_path, "README.md")
readme_path = os.path.join(PROJECT_PATH, "README.md")
shutil.copy(readme_path, "README.md")

license_path = os.path.join(asset_path, "LICENSE.md")
readme_path = os.path.join(PROJECT_PATH, "README_en.md")
shutil.copy(readme_path, "README_en.md")

license_path = os.path.join(PROJECT_PATH, "LICENSE.md")
shutil.copy(license_path, "LICENSE.md")

print("done")
Expand Down

0 comments on commit fdb9a0c

Please sign in to comment.