diff options
author | 2021-02-18 11:38:11 -0800 | |
---|---|---|
committer | 2021-02-18 11:38:11 -0800 | |
commit | 2e5cf0857df056c8be7b73e8cb17fe227b272785 (patch) | |
tree | 577fa705dec27427cc5fa2808440bee190d1efc1 /Python/setup.py | |
parent | 85b55bae22da4d26474fce172988c53022592371 (diff) | |
download | WarpX-2e5cf0857df056c8be7b73e8cb17fe227b272785.tar.gz WarpX-2e5cf0857df056c8be7b73e8cb17fe227b272785.tar.zst WarpX-2e5cf0857df056c8be7b73e8cb17fe227b272785.zip |
Add "." to libwarpx Aliases (#1720)
* Add "." to libwarpx Aliases
Add a "." to the suffix of the short-hand `libwarpx.<DIM>.<so|dll>`
libs. This unifies the suffix with the structure in executables and
makes it easier to find a "long" version of the library (not in this
PR).
Also fixes the suffix naming on Windows to ".dll", since this is
a true C/C++ library, not a Python module (aka not a shared library
following Python entry points and conventions).
* CMake: Add library alias in install
Also add the expected library alias in CMake install prefixes.
Diffstat (limited to 'Python/setup.py')
-rw-r--r-- | Python/setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/setup.py b/Python/setup.py index fe06d66f8..58f31b8bd 100644 --- a/Python/setup.py +++ b/Python/setup.py @@ -34,7 +34,7 @@ if args.with_libwarpx: # GNUmake if args.with_libwarpx not in allowed_dims: print("WARNING: '%s' is not an allowed WarpX DIM" % args.with_libwarpx) - package_data = {'pywarpx' : ['libwarpx%s.so' % args.with_libwarpx]} + package_data = {'pywarpx' : ['libwarpx.%s.so' % args.with_libwarpx]} data_files = [] elif args.with_lib_dir or PYWARPX_LIB_DIR: # CMake and Package Managers @@ -42,7 +42,7 @@ elif args.with_lib_dir or PYWARPX_LIB_DIR: lib_dir = args.with_lib_dir if args.with_lib_dir else PYWARPX_LIB_DIR my_path = os.path.dirname(os.path.realpath(__file__)) for dim in allowed_dims: - lib_name = 'libwarpx%s.so' % dim + lib_name = 'libwarpx.%s.so' % dim lib_path = os.path.join(lib_dir, lib_name) link_name = os.path.join(my_path, "pywarpx", lib_name) if os.path.isfile(link_name): |