Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
celllframe-node
Commits
3ff6647d
Commit
3ff6647d
authored
1 week ago
by
Constantin P.
💬
Browse files
Options
Downloads
Plain Diff
Merge feature-15670
parents
a404cd8e
b96d7efa
No related branches found
No related tags found
1 merge request
!1858
hotfix-15147
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+39
-4
39 additions, 4 deletions
CMakeLists.txt
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
diagtool
+1
-1
1 addition, 1 deletion
diagtool
dist/share/default.setup
+1
-1
1 addition, 1 deletion
dist/share/default.setup
with
42 additions
and
7 deletions
CMakeLists.txt
+
39
−
4
View file @
3ff6647d
...
...
@@ -8,7 +8,7 @@ set(CMAKE_ENABLE_EXPORTS ON)
set
(
CMAKE_VERBOSE_MAKEFILE ON
)
set
(
CMAKE_COLOR_MAKEFILE ON
)
set
(
CMAKE_C_STANDARD 11
)
# Predefine project
SET
(
CPACK_PACKAGE_NAME
"
${
PROJECT_NAME
}
"
)
ReadVariables
(
version.mk
)
...
...
@@ -313,6 +313,15 @@ if(UNIX AND NOT WIN32)
add_definitions
(
"-DPYTHON_VERSION=
\"
python3.10
\"
"
)
endif
()
if
(
DARWIN
)
if
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"arm"
)
set
(
PYTHON_URL
"https://pub.cellframe.net/3rdparty/python/cpython-3.10.16+20250212-aarch64-apple-darwin-install_only.tar.gz"
)
else
()
set
(
PYTHON_URL
"https://pub.cellframe.net/3rdparty/python/cpython-3.10.16%2B20250205-x86_64-apple-darwin-install_only.tar.gz"
)
endif
()
add_definitions
(
"-DPYTHON_VERSION=
\"
python3.10
\"
"
)
endif
()
message
(
"[+] Build with python environment"
)
message
(
" Downloading static prebuild cpython
${
PYTHON_URL
}
"
)
#this python was build by compiling and installing static python distrip to /opt/cellframe-node/ and
...
...
@@ -336,9 +345,9 @@ if(UNIX AND NOT WIN32)
list
(
APPEND CMAKE_PREFIX_PATH
${
cpythonstatic_SOURCE_DIR
}
)
if
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE MATCHES
"arm"
)
find_package
(
Python EXACT 3.11 COMPONENTS
Interpreter
Development REQUIRED
)
find_package
(
Python EXACT 3.11 COMPONENTS Development REQUIRED
)
else
()
find_package
(
Python EXACT 3.10 COMPONENTS
Interpreter
Development REQUIRED
)
find_package
(
Python EXACT 3.10 COMPONENTS Development REQUIRED
)
endif
()
target_link_options
(
${
NODE_TARGET
}
PUBLIC
"-Wl,-rpath,
${
CMAKE_INSTALL_PREFIX
}
/python/lib/"
)
...
...
@@ -368,8 +377,15 @@ if(UNIX AND NOT WIN32)
include_directories
(
${
Python_INCLUDE_DIRS
}
include/
)
add_subdirectory
(
python-cellframe
)
#this helps
#install_name_tool -change /install/lib/libpython3.10.dylib @executable_path/../../python/lib/libpython3.10.dylib ./build_osx_rwd/dist/Applications/CellframeNode.app/Contents/MacOS/cellframe-node
list
(
APPEND NODE_LIBRARIES dap_plugins_python
${
Python_LIBRARIES
}
)
if
(
DARWIN
)
add_custom_command
(
TARGET
${
NODE_TARGET
}
POST_BUILD COMMAND
${
CMAKE_INSTALL_NAME_TOOL
}
-change /install/lib/libpython3.10.dylib @executable_path/../Frameworks/python/lib/libpython3.10.dylib
${
NODE_TARGET
}
)
endif
()
endif
()
if
(
ANDROID
)
...
...
@@ -403,6 +419,25 @@ if(DARWIN)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/os/macos/com.demlabs.cellframe-diagtool.plist DESTINATION
${
SHAREDIR
}
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/os/macos/Info.plist DESTINATION
${
CONTENTSDIR
}
)
if
(
BUILD_WITH_PYTHON_ENV
)
set
(
PYTHON_PIP
"
${
cpythonstatic_SOURCE_DIR
}
/bin/pip3"
)
set
(
PYTHON_BIN
"
${
cpythonstatic_SOURCE_DIR
}
/bin/python3.10"
)
set
(
PYTHON_LIB
"
${
cpythonstatic_SOURCE_DIR
}
/lib/libpython3.10.dylib"
)
set
(
PYTHON_LIB_DIR
"
${
cpythonstatic_SOURCE_DIR
}
/lib/python3.10"
)
set
(
PYTHON_LIB_DIR_PRFX
"python3.10"
)
INSTALL
(
FILES
${
PYTHON_PIP
}
DESTINATION
${
RLIBDIR
}
/python/bin/
)
INSTALL
(
FILES
${
PYTHON_BIN
}
DESTINATION
${
RLIBDIR
}
/python/bin/
)
INSTALL
(
FILES
${
PYTHON_LIB
}
DESTINATION
${
RLIBDIR
}
/python/lib/
)
INSTALL
(
DIRECTORY
${
PYTHON_LIB_DIR
}
DESTINATION
${
RLIBDIR
}
/python/lib/ USE_SOURCE_PERMISSIONS
)
#install python-modules
INSTALL
(
DIRECTORY python-cellframe/dists/python-modules/pycfhelpers DESTINATION
${
RLIBDIR
}
/python/lib/
${
PYTHON_LIB_DIR_PRFX
}
/site-packages USE_SOURCE_PERMISSIONS
)
INSTALL
(
DIRECTORY python-cellframe/dists/python-modules/pycftools DESTINATION
${
RLIBDIR
}
/python/lib/
${
PYTHON_LIB_DIR_PRFX
}
/site-packages USE_SOURCE_PERMISSIONS
)
INSTALL
(
DIRECTORY python-cellframe/dists/interfaces DESTINATION
${
RLIBDIR
}
/python/lib/ USE_SOURCE_PERMISSIONS
)
endif
()
else
()
INSTALL
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/ DESTINATION
${
CMAKE_INSTALL_PREFIX
}
FILES_MATCHING PATTERN
"*"
PATTERN
"*"
)
...
...
This diff is collapsed.
Click to expand it.
cellframe-sdk
@
118e96e5
Compare
31b34aa3
...
118e96e5
Subproject commit
31b34aa3adde1f5ebe39fbcbc61799cfd8f63c82
Subproject commit
118e96e5dc46d47d53bdd5fbf2b83b79d8c17f4e
This diff is collapsed.
Click to expand it.
diagtool
@
dfeb4a8f
Compare
293cc6c4
...
dfeb4a8f
Subproject commit
293cc6c4038ea85c6819d9f847ad3802b02162b5
Subproject commit
dfeb4a8f76a59842321ef40d56eb8509417d19b3
This diff is collapsed.
Click to expand it.
dist/share/default.setup
+
1
−
1
View file @
3ff6647d
...
...
@@ -90,7 +90,7 @@ if Linux != ${HOST_OS}
config cellframe-node plugins enabled ensure false
endif
config cellframe-node plugins py_path ensure
${CONFIGS_PATH}
/var/lib/plugins
config cellframe-node plugins py_path ensure
..
/var/lib/plugins
config Backbone general node-role default full
config KelVPN general node-role default full
...
...
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