Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup built python wheel being empty #1223

Merged
merged 2 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/1223-bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix setup.py in Smi_Common_Python to include all files, regardless of the current directory.
10 changes: 2 additions & 8 deletions src/common/Smi_Common_Python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,11 @@ def version_from_AssemblyInfo():
ver = '0.0.0'
return(ver)

def find_source_path():
""" The path to the packages, so you can call setup.py from its own directory or from the repo root """
if isdir('src/common/Smi_Common_Python'):
return('src/common/Smi_Common_Python')
return('.')

setup(
name='SmiServices',
version=version_from_AssemblyInfo(),
packages=find_packages(where=find_source_path(), exclude=('tests',)),
package_dir={'':find_source_path()},
packages=find_packages(where=dirname(__file__), exclude=('tests',)),
package_dir={'':dirname(__file__)},
url='https://github.com/SMI/SmiServices',
license='GPLv3',
description='Common Python modules for SmiServices',
Expand Down