Errors in Packaging:Python#Byte_Compiled_Files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


-- 
Ville-Pekka Vainio

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux