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:
Monty Montgomery 2022-05-15 00:24:40 -04:00
parent b82796e58d
commit 5d0e69c7ed
3 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,7 @@ if(USE_PYTHON)
file(TO_CMAKE_PATH ${PYTHON_PACKAGES_INSTALL_DIR} PYTHON_PACKAGES_INSTALL_DIR)
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)
set(NG_INSTALL_DIR_BIN_DEFAULT Contents/MacOS)

View File

@ -64,7 +64,7 @@ proc ngtest { {t all} {f ""}} {
}
puts "\n ** testing in2d files in tutorials/ **"
set testdir "$::ngdir/../share/netgen"
set testdir "$::ngdir/../share/netgen-mesher"
set in2dfiles { demo2d newin2d square v2in2d }
foreach {tfile} $in2dfiles {
if {$f != ""} { puts " * meshing file tutorials/$tfile.in2d..." }
@ -89,7 +89,7 @@ proc ngtest { {t all} {f ""}} {
}
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
circle_on_cube cubemsphere fichera sculpture twobricks
cone cylinder lshape3d shaft twocubes

View File

@ -36,7 +36,7 @@ else:
py_install_dir = get_python_lib(1,0,'').replace('\\','/')
name = "netgen-mesher"
name = "netgen"
arch = None
cmake_args = [
f'-DNETGEN_VERSION_GIT={git_version}',