Skip to content

Commit

Permalink
build: try remove python binding from release
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 18, 2024
1 parent f091371 commit ee1d634
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
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(__file__, os.pardir, 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 ee1d634

Please sign in to comment.