Skip to content
Snippets Groups Projects
Commit 85806291 authored by Vincent Templier's avatar Vincent Templier
Browse files

Add version.txt in aidge package

parent 7c7ab629
No related branches found
No related tags found
No related merge requests found
......@@ -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__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment