Hi,
I'm adding a Python interface to a package of mine and was reading https://fedoraproject.org/wiki/Packaging:Python#Byte_Compiled_Files where it says:
%install install -d %{python_sitelib}/foo install -pm 0644 foo.py %{python_sitelib}/foo/
but you can't actually use %{python_sitelib} on it's own in %install. I think those instructions should be something like:
%install install -d $RPM_BUILD_ROOT%{python_sitelib}/foo install -pm 0644 foo.py $RPM_BUILD_ROOT%{python_sitelib}/foo/
On Sun, Oct 25, 2009 at 02:24:28PM +0200, Ville-Pekka Vainio wrote:
Hi,
I'm adding a Python interface to a package of mine and was reading https://fedoraproject.org/wiki/Packaging:Python#Byte_Compiled_Files where it says:
%install install -d %{python_sitelib}/foo install -pm 0644 foo.py %{python_sitelib}/foo/
but you can't actually use %{python_sitelib} on it's own in %install. I think those instructions should be something like:
%install install -d $RPM_BUILD_ROOT%{python_sitelib}/foo install -pm 0644 foo.py $RPM_BUILD_ROOT%{python_sitelib}/foo/
Fixed. Thank you very much for reporting.
-Toshio
why not
install -Dpm 0644 foo.py $RPM_BUILD_ROOT%{python_sitelib}/foo/foo.py
just in one line.
like:
%install install -d $RPM_BUILD_ROOT%{python_sitelib}/foo install -pm 0644 foo.py $RPM_BUILD_ROOT%{python_sitelib}/foo/
------------
Itamar Reis Peixoto
e-mail/msn/google talk/sip: itamar@ispbrasil.com.br skype: itamarjp icq: 81053601 +55 11 4063 5033 +55 34 3221 8599
packaging@lists.fedoraproject.org