Skip to content

Commit ee1d634

Browse files
committed
build: try remove python binding from release
1 parent f091371 commit ee1d634

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

source/binding/CMakeLists.txt

+1-3
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

+8-5
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(__file__, os.pardir, 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)