mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
Fix python usage on Windows (#60)
* Polish compilation on Windows * Fix python usage on Windows
This commit is contained in:
10
setup.py
10
setup.py
@@ -362,6 +362,16 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
|
||||
"fastdeploy/libs/third_libs",
|
||||
symlinks=True)
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
release_dir = os.path.join(".setuptools-cmake-build", "Release")
|
||||
for f in os.listdir(release_dir):
|
||||
filename = os.path.join(release_dir, f)
|
||||
if not os.path.isfile(filename):
|
||||
continue
|
||||
if filename.endswith(".pyd"):
|
||||
continue
|
||||
shutil.copy(filename, "fastdeploy/libs")
|
||||
|
||||
if platform.system().lower() == "linux":
|
||||
rpaths = ["$ORIGIN:$ORIGIN/libs"]
|
||||
for root, dirs, files in os.walk(
|
||||
|
||||
Reference in New Issue
Block a user