Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
43b66c88
Commit
43b66c88
authored
1 year ago
by
Amna Snene
Committed by
Adrien Béraud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
build: switch to print instead of logging
Change-Id: I315319efb1bc2d2466809215a43437854b816d79
parent
01ce1fba
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dependencies/build.py
+7
-10
7 additions, 10 deletions
dependencies/build.py
with
7 additions
and
10 deletions
dependencies/build.py
+
7
−
10
View file @
43b66c88
...
...
@@ -19,10 +19,7 @@
import
subprocess
import
os
import
logging
# Configure the logging system
logging
.
basicConfig
(
filename
=
'
install/install.log
'
,
level
=
logging
.
INFO
,
format
=
'
%(asctime)s - %(levelname)s - %(message)s
'
)
# Define paths and directories
opendht_dir
=
"
opendht
"
...
...
@@ -31,7 +28,7 @@ restinio_dir = "restinio"
install_dir
=
os
.
path
.
abspath
(
"
install
"
)
def
build_and_install_opendht
():
logging
.
info
(
"
Building and installing OpenDHT...
"
)
print
(
"
Building and installing OpenDHT...
"
)
try
:
# Configure OpenDHT with CMake
subprocess
.
run
([
"
cmake
"
,
"
.
"
,
...
...
@@ -48,9 +45,9 @@ def build_and_install_opendht():
# Build and install OpenDHT
subprocess
.
run
([
"
make
"
,
"
install
"
],
cwd
=
opendht_dir
,
check
=
True
)
logging
.
info
(
"
OpenDHT installed successfully.
"
)
print
(
"
OpenDHT installed successfully.
"
)
except
subprocess
.
CalledProcessError
as
e
:
logging
.
error
(
"
Error building or installing OpenDHT: %s
"
,
e
)
print
(
"
Error building or installing OpenDHT: %s
"
,
e
)
def
build_and_install_pjproject
():
# Build PJSIP libraries
...
...
@@ -83,9 +80,9 @@ def build_and_install_pjproject():
subprocess
.
run
([
"
make
"
],
cwd
=
pjproject_dir
,
check
=
True
)
subprocess
.
run
([
"
make
"
,
"
install
"
],
cwd
=
pjproject_dir
,
check
=
True
)
logging
.
info
(
"
PJSIP libraries built successfully.
"
)
print
(
"
PJSIP libraries built successfully.
"
)
except
subprocess
.
CalledProcessError
as
e
:
logging
.
error
(
"
Error building PJSIP libraries: %s
"
,
e
)
print
(
"
Error building PJSIP libraries: %s
"
,
e
)
def
build_and_install_restinio
():
try
:
...
...
@@ -107,9 +104,9 @@ def build_and_install_restinio():
subprocess
.
run
([
"
make
"
,
"
-j8
"
],
cwd
=
restino_build_dir
,
check
=
True
)
subprocess
.
run
([
"
make
"
,
"
install
"
],
cwd
=
restino_build_dir
,
check
=
True
)
logging
.
info
(
"
restinio built and installed successfully.
"
)
print
(
"
restinio built and installed successfully.
"
)
except
subprocess
.
CalledProcessError
as
e
:
logging
.
error
(
"
Error building or installing restinio: %s
"
,
e
)
print
(
"
Error building or installing restinio: %s
"
,
e
)
def
main
():
# Create install directory if it doesn't exist
...
...
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