diff --git a/setup.py b/setup.py index 49844bc9bef4c0295447b3524e64884fe05f6715..ebad7c2bf52633f86b75dabfffb9bb43f4c25939 100644 --- a/setup.py +++ b/setup.py @@ -72,10 +72,10 @@ class CMakeBuild(build_ext): aidge_package = build_lib / "aidge" - # Get "aidge" package + # Get "aidge core" package ext_lib = build_temp / "aidge" / "_Core" - # Copy all shared object files from build_temp/lib to build_lib + # Copy all shared object files from build_temp/lib to aidge_package for root, _, files in os.walk(ext_lib.absolute()): for file in files: if file.endswith('.so'): @@ -85,12 +85,16 @@ class CMakeBuild(build_ext): # Get "aidge cpu" package ext_lib = build_temp / "aidge" / "_CPU" - # Copy all shared object files from build_temp/lib to build_lib + # Copy all shared object files from build_temp/lib to aidge_package for root, _, files in os.walk(ext_lib.absolute()): for file in files: if file.endswith('.so'): currentFile=os.path.join(root, file) - shutil.copy(currentFile, str(aidge_package.absolute())) + shutil.copy(currentFile, str(aidge_package.absolute())) + + # Copy version.txt in aidge_package + os.chdir(os.path.dirname(__file__)) + shutil.copy("version.txt", str(aidge_package.absolute())) if __name__ == '__main__':