Skip to content

Commit

Permalink
Removed bdist_rpm from setup.cfg #1222
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 4, 2024
1 parent fa69b74 commit 4735a4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l2tdevtools/dependency_writers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def Write(self):
if self._project_definition.name.endswith('-kb'):
python_module_name = ''.join([python_module_name[:-3], 'rc'])

# TODO: handle data directory without yaml files.

package_data = []
for data_file in glob.glob(
f'{python_module_name:s}/**/*.yaml', recursive=True):
Expand All @@ -128,8 +130,7 @@ def Write(self):
if data_file_directory:
data_file = '/'.join([data_file_directory, data_file])

if (data_file_directory == 'data' or
data_file not in package_data):
if data_file not in package_data:
package_data.append(data_file)

formatted_package_data = [
Expand Down

0 comments on commit 4735a4a

Please sign in to comment.