Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #9227 > unrolled thread

Re: Best way to package a python module which is "private" with exposed calling script

Started byThomas Nyberg <tomuxiong@gmx.com>
First post2017-02-07 15:00 +0100
Last post2017-02-07 18:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Re: Best way to package a python module which is "private" with  exposed calling script Thomas Nyberg <tomuxiong@gmx.com> - 2017-02-07 15:00 +0100
    Re: Best way to package a python module which is "private" with  exposed calling script Andrey Rahmatullin <wrar@debian.org> - 2017-02-07 15:20 +0100
      Re: Best way to package a python module which is "private" with  exposed calling script Thomas Nyberg <tomuxiong@gmx.com> - 2017-02-07 18:50 +0100

#9227 — Re: Best way to package a python module which is "private" with exposed calling script

FromThomas Nyberg <tomuxiong@gmx.com>
Date2017-02-07 15:00 +0100
SubjectRe: Best way to package a python module which is "private" with exposed calling script
Message-ID<t8etk-3Av-11@gated-at.bofh.it>
Hi Simon,

Thank you very much for the response!

I've been looking at the offlineimap package on my system (jessie), but 
in my case `/usr/bin/offlineimap` is _not_ a symlink. Also the python 
code is not installed to `/usr/share/offlineimap` and instead to 
`/usr/share/pyshared/offlineimap/` and so if I start a normal 
interpreter `import offlineimap` does work (which I'd rather it not). Am 
I completely missing something here or did you possibly mean another 
example package?

Cheers,
Thomas

P.S. I forgot to subscribe to the list before sending the last email and 
had to hack in the `In-reply-to` value this time. For any readers, in 
case I got this wrong this is the post I'm replying to:

https://lists.debian.org/debian-python/2017/02/msg00018.html

[toc] | [next] | [standalone]


#9230

FromAndrey Rahmatullin <wrar@debian.org>
Date2017-02-07 15:20 +0100
Message-ID<t8eMG-3Xq-7@gated-at.bofh.it>
In reply to#9227

[Multipart message — attachments visible in raw view] — view raw

On Tue, Feb 07, 2017 at 08:50:02AM -0500, Thomas Nyberg wrote:
> I've been looking at the offlineimap package on my system (jessie), but in
> my case `/usr/bin/offlineimap` is _not_ a symlink. Also the python code is
> not installed to `/usr/share/offlineimap` and instead to
> `/usr/share/pyshared/offlineimap/` and so if I start a normal interpreter
> `import offlineimap` does work (which I'd rather it not). Am I completely
> missing something here or did you possibly mean another example package?
You should look at the sid package version, it's different there.

-- 
WBR, wRAR

[toc] | [prev] | [next] | [standalone]


#9231

FromThomas Nyberg <tomuxiong@gmx.com>
Date2017-02-07 18:50 +0100
Message-ID<t8i3U-5U6-13@gated-at.bofh.it>
In reply to#9230
On 02/07/2017 08:54 AM, Andrey Rahmatullin wrote:
> On Tue, Feb 07, 2017 at 08:50:02AM -0500, Thomas Nyberg wrote:
> You should look at the sid package version, it's different there.
>

Thanks a lot! (Should have been an obvious first step...)

And thanks a lot everyone else!

Also I figure I might as well mention on this list that I went through 
and put together a bare-bones example for myself. There are always minor 
finicky things with this (at least for me) so I figure I might as well 
link it in this thread for any future internet travelers. Might save 
them a little hassle...

https://github.com/ApproximateIdentity/debian-private-package

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web