Remove unneccessary __init__.py files to avoid file conflicts

This commit is contained in:
Major Hayden 2021-07-14 10:30:51 -05:00
commit f94f0ba075
No known key found for this signature in database
GPG key ID: 737051E0C1011FB1

View file

@ -2,7 +2,7 @@
Name: python-%{srcname}
Version: 2.0.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Microsoft Azure Batch AI Management Client Library for Python
License: MIT
URL: https://pypi.org/project/%{srcname}/
@ -46,14 +46,23 @@ rm -f azure_bdist_wheel.py
%install
%pyproject_install
%pyproject_save_files azure
# PEP 420 allows implicit namespace packaging without additional __init__.py
# files. Remove unneccessary __init__.py that conflicts with other packages.
rm -rf %{buildroot}%{python3_sitelib}/azure/{__init__.py,__pycache__}
rm -rf %{buildroot}%{python3_sitelib}/azure/mgmt/{__init__.py,__pycache__}
%files -n python3-%{srcname} -f %{pyproject_files}
%files -n python3-%{srcname}
%doc README.rst HISTORY.rst
%{python3_sitelib}/azure/mgmt/batchai
%{python3_sitelib}/azure_mgmt_batchai-%{version}.dist-info
%changelog
* Wed Jul 14 2021 Major Hayden <major@mhtx.net> - 2.0.0-3
- Remove unneccessary __init__.py files to avoid file conflicts.
* Wed Jul 07 2021 Major Hayden <major@mhtx.net> - 2.0.0-2
- Removed customized wheel builder from package to avoid -nspkg requirement.