Skip to content

Commit

Permalink
only include the pycache files for the built module
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 28, 2020
1 parent 6eb769a commit 2030b70
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyp2rpm/templates/epel6.spec
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ popd
{%- for module in data.py_modules -%}
{%- if pv == '3' %}
%dir %{python{{ pv }}_sitelib}/__pycache__/
%{python{{ pv }}_sitelib}/__pycache__/*
%{python{{ pv }}_sitelib}/__pycache__/{{ data.name | module_to_path(module) }}.*
{%- endif %}
%{python{{ pv }}_sitelib}/{{ data.name | module_to_path(module) }}.py{% if pv != '3'%}*{% endif %}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion pyp2rpm/templates/epel7.spec
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ rm -rf %{buildroot}%{_bindir}/*
{%- for module in data.py_modules -%}
{%- if pv == '3' %}
%dir %{python{{ pv }}_sitelib}/__pycache__/
%{python{{ pv }}_sitelib}/__pycache__/*
%{python{{ pv }}_sitelib}/__pycache__/{{ data.name | module_to_path(module) }}.*
{%- endif %}
%{python{{ pv }}_sitelib}/{{ data.name | module_to_path(module) }}.py{% if pv != '3'%}*{% endif %}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion pyp2rpm/templates/fedora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rm -rf %{buildroot}%{_bindir}/*
{%- if data.py_modules %}
{%- for module in data.py_modules -%}
{%- if pv == '3' %}
%{python{{ pv }}_sitelib}/__pycache__/*
%{python{{ pv }}_sitelib}/__pycache__/{{ data.name | module_to_path(module) }}.*
{%- endif %}
%{python{{ pv }}_sitelib}/{{ data.name | module_to_path(module) }}.py{% if pv != '3'%}*{% endif %}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion pyp2rpm/templates/mageia.spec
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rm -rf %{buildroot}%{_bindir}/*
{%- if data.py_modules %}
{%- for module in data.py_modules -%}
{%- if pv == '3' %}
%{python{{ pv }}_sitelib}/__pycache__/*
%{python{{ pv }}_sitelib}/__pycache__/{{ data.name | module_to_path(module) }}.*
{%- endif %}
%{python{{ pv }}_sitelib}/{{ data.name | module_to_path(module) }}.py{% if pv != '3'%}*{% endif %}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion pyp2rpm/templates/pld.spec
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ rm -rf $RPM_BUILD_ROOT
{%- endif %}
{%- if pv == '3' -%}
%{py{{ v }}_sitescriptdir}/{{ data.name | module_to_path(module) }}.py
%{py{{ v }}_sitescriptdir}/__pycache__/*
%{py{{ v }}_sitescriptdir}/__pycache__/{{ data.name | module_to_path(module) }}.*
{%- endif %}
{%- endfor %}
{%- endif %}
Expand Down

0 comments on commit 2030b70

Please sign in to comment.