[Fedora-packaging] Errors in Packaging:Python#Byte_Compiled_Files

Ville-Pekka Vainio vpivaini at cs.helsinki.fi
Sun Oct 25 12:24:28 UTC 2009


I'm adding a Python interface to a package of mine and was reading
where it says:

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 -d $RPM_BUILD_ROOT%{python_sitelib}/foo
install -pm 0644 foo.py $RPM_BUILD_ROOT%{python_sitelib}/foo/

Ville-Pekka Vainio

More information about the Fedora-packaging mailing list