Skip to content

Commit

Permalink
Tell setuptools that the package_dir is in python/
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Feb 26, 2024
1 parent f1db529 commit 6b36d67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ def package_files(directory):
paths.append(os.path.join('..', path, filename))
return paths

if not os.path.exists("psapi-stubs"):
os.makedirs("psapi-stubs")

setup(
name="PhotoshopAPI",
Expand All @@ -162,6 +160,7 @@ def package_files(directory):
long_description="Includes full support for modifying nested layer hierarchies as well as all bit depths known to Photoshop",
ext_modules=[CMakeExtension("psapi")],
cmdclass={"build_ext": CMakeBuild},
package_dir = {"": "python"},
packages=["psapi-stubs"],
package_data={"psapi-stubs": package_files("python/psapi-stubs")},
zip_safe=False,
Expand Down

0 comments on commit 6b36d67

Please sign in to comment.