mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-29 22:30:33 +05:00
Alter name use of 'netgen' and 'netgen-mesher'
The name of the 'netgen' executable collides with an older UNIX pcb trace routing application also named 'netgen'. Fedora, for this reason, renames this mesher package to 'netgen-mesher' and the executable, likewise, to 'netgen-mesher'. I propose the same change here. Ironically though, the current python module is already named 'netgen-mesher', which complicates loading of the module as 'netgen', often resulting in it being unfindable. For this reason, I similarly reverse the usage, renaming the python module from 'netgen-mesher' to 'netgen'.
This commit is contained in:
parent
b82796e58d
commit
5d0e69c7ed
@ -133,7 +133,7 @@ if(USE_PYTHON)
|
|||||||
file(TO_CMAKE_PATH ${PYTHON_PACKAGES_INSTALL_DIR} PYTHON_PACKAGES_INSTALL_DIR)
|
file(TO_CMAKE_PATH ${PYTHON_PACKAGES_INSTALL_DIR} PYTHON_PACKAGES_INSTALL_DIR)
|
||||||
endif(USE_PYTHON)
|
endif(USE_PYTHON)
|
||||||
|
|
||||||
set(NG_INSTALL_SUFFIX netgen CACHE STRING "Suffix appended to install directories (project name)")
|
set(NG_INSTALL_SUFFIX netgen-mesher CACHE STRING "Suffix appended to install directories (project name)")
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(NG_INSTALL_DIR_BIN_DEFAULT Contents/MacOS)
|
set(NG_INSTALL_DIR_BIN_DEFAULT Contents/MacOS)
|
||||||
|
@ -64,7 +64,7 @@ proc ngtest { {t all} {f ""}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
puts "\n ** testing in2d files in tutorials/ **"
|
puts "\n ** testing in2d files in tutorials/ **"
|
||||||
set testdir "$::ngdir/../share/netgen"
|
set testdir "$::ngdir/../share/netgen-mesher"
|
||||||
set in2dfiles { demo2d newin2d square v2in2d }
|
set in2dfiles { demo2d newin2d square v2in2d }
|
||||||
foreach {tfile} $in2dfiles {
|
foreach {tfile} $in2dfiles {
|
||||||
if {$f != ""} { puts " * meshing file tutorials/$tfile.in2d..." }
|
if {$f != ""} { puts " * meshing file tutorials/$tfile.in2d..." }
|
||||||
@ -89,7 +89,7 @@ proc ngtest { {t all} {f ""}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
puts "\n ** testing geo files in tutorials/ **"
|
puts "\n ** testing geo files in tutorials/ **"
|
||||||
set testdir "$::ngdir/../share/netgen"
|
set testdir "$::ngdir/../share/netgen-mesher"
|
||||||
set geofiles { boxcyl cubemcyl extrusion revolution trafo
|
set geofiles { boxcyl cubemcyl extrusion revolution trafo
|
||||||
circle_on_cube cubemsphere fichera sculpture twobricks
|
circle_on_cube cubemsphere fichera sculpture twobricks
|
||||||
cone cylinder lshape3d shaft twocubes
|
cone cylinder lshape3d shaft twocubes
|
||||||
|
2
setup.py
2
setup.py
@ -36,7 +36,7 @@ else:
|
|||||||
|
|
||||||
py_install_dir = get_python_lib(1,0,'').replace('\\','/')
|
py_install_dir = get_python_lib(1,0,'').replace('\\','/')
|
||||||
|
|
||||||
name = "netgen-mesher"
|
name = "netgen"
|
||||||
arch = None
|
arch = None
|
||||||
cmake_args = [
|
cmake_args = [
|
||||||
f'-DNETGEN_VERSION_GIT={git_version}',
|
f'-DNETGEN_VERSION_GIT={git_version}',
|
||||||
|
Loading…
Reference in New Issue
Block a user