Remove unneccessary __init__.py files to avoid file conflicts
This commit is contained in:
parent
d779313760
commit
f94f0ba075
1 changed files with 12 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue