From 1a9e0cdfeb1bd3bef57e2f8496e44e731ec1137d Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Fri, 19 Feb 2021 14:57:41 -0600 Subject: [PATCH] Remove packages and package_dir from setup.py I really am not sure why, but this has been causing big headaches for use with scikit build. Probably some hard-to-track bug. Basically, if we kept these lines the way that they are, all of the targets `install()`ed by cmake get installed in a completely different location than the rest of the packages. They get installed in "stempy" in the root directory of the environment instead of inside lib/pythonX.X/site-packages/stempy. I really don't know why, but since we can seemingly do things fine without those lines, just remove them. Signed-off-by: Patrick Avery --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 25123b2c..662ba6de 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,7 @@ def extra_cmake_args(): 'Programming Language :: Python :: 3', ], keywords='', - packages=['stempy', 'stempy.io', 'stempy.image', 'stempy.pipeline'], - package_dir={'':'python'}, + packages=['stempy'], install_requires=[ 'numpy', 'h5py',