Re: Pythonfilter conundrum

Gordon Messmer <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Sorry to reply late -- I got COVID again (how's *your* RTO going?) and 
I've neglected a lot of things while I've been ill.


On 2023-09-19 05:05, Alessandro Vesely wrote:
> sudo pip3 install --target /usr/local/lib/python3.11/dist-packages 
> courier-pythonfilter
>
> That directory is included in Python path, and was empty.  As this is 
> bound to Python minor version, I'll have to go through this on the 
> next upgrade too.  Do everybody else use venv?


I build the software as an RPM, personally, but a venv should work (and 
has been the recommended mechanism for using pip for a long time.


> However, I previously had a directory 
> /usr/lib/python3.11/dist-packages/bin which contained dropmsg, 
> pythonfilter, and  pythonfilter-quarantine.  Now I don't have them any 
> more.  And the executable /usr/local/bin/pythonfilter is still dated 
> 2021.  Shouldn't it get installed by pip3?


When I install the package in a target with pip3, the target contains a 
"bin" directory with the package's scripts.  I would not expect anything 
in /usr/local/bin to be modified, nor to find the scripts there.



_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.