%%PYTHON_SITELIBDIR%% in pkg-plist

Bryan Drewery bdrewery at FreeBSD.org
Sat Jul 6 15:54:47 UTC 2013


On 7/6/2013 10:43 AM, Kubilay Kocak wrote:
> On 7/07/2013 12:51 AM, Nikolai Lifanov wrote:
>> Hello.
>>
>> I maintain sysutils/ansible, and I keep wanting to @dirrmtry
>> %%PYTHON_SITELIBDIR%% and perhaps %%PYTHON_LIBDIR%%.
>> portlint tells me that this is a wrong thing to do, while poudriere
>> testport complains about leftover directories.
>>
>> What is the correct thing to do with these?
>>
>> - Nikolai Lifanov
>>
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> 
> The following are 'normal'leftover entries when testing python ports,
> and can safely be ignored:
> 
> %%PYTHON_LIBDIR%%/site-packages/easy-install.pth
> %%PYTHON_LIBDIR%%/site-packages/site.py
> %%PYTHON_LIBDIR%%/site-packages/site.pyc
> %%PYTHON_LIBDIR%%/site-packages/site.pyo
> @dirrm %%PYTHON_LIBDIR%%/site-packages
> @dirrm %%PYTHON_LIBDIR%%
> 
> The above output is from poudriere, and %%PYTHON_LIBDIR%%/site-packages/
> is actually %%PYTHON_SITELIBDIR%%. Here, poudriere is just making a
> first-variable-from-the-list-wins guess.
> 
> If you see porttools `port test` output, you'll note it displays
> %%PYTHON_SITELIBDIR%% as the leftover prefix. They can be ignored as well.
> 
> Hope that helps :)
> 

The problem is just that the port (and python ports) do not respect
PREFIX when it does not equal LOCALBASE. By default, 'poudriere
testport' uses a custom PREFIX. In general, ports should pass leftover
tests by default. If they use ports framework support that does not
respect PREFIX, try using -n as well, which will stick to
PREFIX=LOCALBASE. In this case, using -n passes the test with testport
on ansible.


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20130706/045eea77/attachment.sig>


More information about the freebsd-python mailing list