Skip to content

Commit

Permalink
setup.py: fix data_files to isntall libmscp to python library path
Browse files Browse the repository at this point in the history
  • Loading branch information
upa committed Aug 30, 2023
1 parent 13ec652 commit 5466a8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
elif sys.platform == "darwin":
libmscp = "libmscp.dylib"

data_dir = sys.prefix + "/lib"
libmscp = "build/" + libmscp

setup(
name='mscp',
version = version,
Expand All @@ -20,7 +23,7 @@
url = "https://github.com/upa/mscp",
packages = find_packages("mscp"),
package_dir = {"": "mscp"},
data_files = [ ("", ["build/" + libmscp])],
data_files = [ (data_dir, [libmscp])],
py_modules = [ "mscp" ],
ext_modules = [
Extension(
Expand Down

0 comments on commit 5466a8b

Please sign in to comment.