Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aidge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Girard-Satabin
aidge
Commits
36d784ae
Commit
36d784ae
authored
1 year ago
by
Vincent Templier
Browse files
Options
Downloads
Patches
Plain Diff
Update setup.py and __init__ of aidge to include Core library
parent
95885833
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aidge/__init__.py
+1
-0
1 addition, 0 deletions
aidge/__init__.py
setup.py
+19
-21
19 additions, 21 deletions
setup.py
with
20 additions
and
21 deletions
aidge/__init__.py
+
1
−
0
View file @
36d784ae
import
aidge.aidge_core
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
19
−
21
View file @
36d784ae
...
...
@@ -54,45 +54,43 @@ class CMakeBuild(build_ext):
if
not
build_temp
.
exists
():
build_temp
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
install_temp
=
cwd
/
"
install
"
if
not
install_temp
.
exists
():
install_temp
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
build_lib
=
pathlib
.
Path
(
self
.
build_lib
)
if
not
build_lib
.
exists
():
build_lib
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
os
.
chdir
(
str
(
build_temp
))
self
.
spawn
([
"
cmake
"
,
f
"
-DCMAKE_INSTALL_PREFIX:PATH=
{
install_temp
}
"
,
"
-DCMAKE_BUILD_TYPE=Debug
"
,
"
-DWERROR=OFF
"
,
"
-DPYBIND=ON
"
,
str
(
cwd
)])
# Impose to use the executable of the python
# used to launch setup.py to setup PythonInterp
param_py
=
"
-DPYTHON_EXECUTABLE=
"
+
sys
.
executable
self
.
spawn
([
'
cmake
'
,
str
(
cwd
),
param_py
])
if
not
self
.
dry_run
:
self
.
spawn
([
'
make
'
,
'
all
'
,
'
install
'
,
'
-j
'
,
max_jobs
])
self
.
spawn
([
'
make
'
,
'
-j
'
,
max_jobs
])
os
.
chdir
(
str
(
cwd
))
aidge_package
=
build_lib
/
"
aidge
"
# Get "aidge" package
ext_lib
=
build_temp
/
"
c
ore
"
ext_lib
=
build_temp
/
"
aidge
"
/
"
_C
ore
"
# Copy all shared object files from build_temp/lib to build_lib
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
(
build_lib
.
absolute
()))
shutil
.
copy
(
currentFile
,
str
(
aidge_package
.
absolute
()))
# Get "aidge
_ref_
cp
p
" package
ext_lib
=
build_temp
/
"
module
"
/
"
backend
"
/
"
ref_cpp
"
# Get "aidge
cp
u
" package
#
ext_lib = build_temp / "
_CPU
"
# Copy all shared object files from build_temp/lib to build_lib
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
(
build_lib
.
absolute
()))
#
#
Copy all shared object files from build_temp/lib to build_lib
#
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()))
if
__name__
==
'
__main__
'
:
...
...
@@ -106,8 +104,8 @@ if __name__ == '__main__':
long_description
=
"
\n
"
.
join
(
DOCLINES
[
2
:]),
classifiers
=
[
c
for
c
in
CLASSIFIERS
.
split
(
'
\n
'
)
if
c
],
platforms
=
[
"
Linux
"
],
#
packages=find_packages(where="."),
ext_modules
=
[
CMakeExtension
(
'
_cor
e
'
)],
packages
=
find_packages
(
where
=
"
.
"
),
ext_modules
=
[
CMakeExtension
(
'
Aidg
e
'
)],
cmdclass
=
{
'
build_ext
'
:
CMakeBuild
,
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment