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


Groups > linux.debian.maint.python > #8434

Re: Properly splitting Python "-doc" packages

Path csiph.com!goblin3!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Tiago Ilieve <tiago.myhro@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: Properly splitting Python "-doc" packages
Date Fri, 15 Apr 2016 08:40:02 +0200
Message-ID <ro5A6-728-25@gated-at.bofh.it> (permalink)
References <rnPlE-2aV-3@gated-at.bofh.it> <rnPYm-2uu-11@gated-at.bofh.it> <rnR46-3Fm-21@gated-at.bofh.it> <rnRx8-408-13@gated-at.bofh.it> <rnVU6-7Po-11@gated-at.bofh.it> <rnWZQ-h1-7@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Apr 15 06:39:10 2016
Old-Return-Path <tiago.myhro@gmail.com>
X-Amavis-Spam-Status No, score=-1.779 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -7
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=SkQPknmL65v+N3NP3CzN2yInI9x4qr6d1hESKVPafwQ=; b=x73yaf7l6j1Kc/82lt5BoDJEVHUuk7xhdRYAD9SbnwTsH1+YqHvV4piHriNuHQDg3B HBjrM6OsHhIbyPjv8dc74blaYyFKViScgOV7rzy0mWvm0cNxQJ38ZPysvC3AyicWGKOW 2qOaw6PszV0qFvZ3wM1WUPz3ODCXi7RglGlgZZLTZD37Vtn9xOAS14gkVfjLqragH9Yw ycqsuJ12W8lnKhqxMtjw6PKXYe6Z6zHP7hU9g6538Xo5AbMI1mEe+ihRI+LTVSNG9q7m eQqQX0CwHmhID3MUVxVnDRvcb602Gt+XaUBewu0DC9UI/rXoyb1FgoFITR84HpghRZvq tpzw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=SkQPknmL65v+N3NP3CzN2yInI9x4qr6d1hESKVPafwQ=; b=gRHfqONd/gXBVUui2ovaJJ400mTz5ab9IdU6oSpWugKICEak4Sh+0HVjRW4W4PF4J9 l7Q7krsAwTL/GPbsegfHKzsQwJ0OEu+Otdi8lPiRSw/AzDR8cTZzxnVVG5tYsDff54ri O13s5/6KHhkR5giSReGLZhuFkxh9M/TgsneXDl0eD+YN8FbQ9ws4lLE1wOPlxpiYHTdL Ib7vyGcWGFOpvFIO/Ta9kVfap0ZaTq5DKIjQkCg781pK65NJphBCQuRxcTmoOnrGFM5g ihJsjgkNatIpcJFKawho6ezeZu6d8ZSGiQqHMP6XEEGckBJ1egDPt9Au/08X+fx7BlWG VU5A==
X-Gm-Message-State AOPr4FX4Yl3gCUKnnqFbC9mRpvFUBuHRvfEoHZx9IlF5z/OKgBSstkSeBtstU46lwCTnZjcUeyjQvkYAtduElA==
X-Received by 10.176.64.133 with SMTP id i5mr9481509uad.151.1460701423454; Thu, 14 Apr 2016 23:23:43 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13762
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CALdTKe-f8x_1dV65DU2rKSk+AXgUD922Zhshhr4z47hKPF2LGA@mail.gmail.com
Approved robomod@news.nic.it
Lines 48
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 15 Apr 2016 03:23:04 -0300
X-Original-Message-ID <CALdTKe-f8x_1dV65DU2rKSk+AXgUD922Zhshhr4z47hKPF2LGA@mail.gmail.com>
X-Original-References <CALdTKe_eAJ+5WL5Spmjo87JMPQgFsjyZpC3eT881W+nFznYxBQ@mail.gmail.com> <20160414135204.GQ2764@sar0.p1otr.com> <CALdTKe-3dQWq+8AAm5UEyRdFKYZAE60Jf9RbP1dC+gaaHDd5Dw@mail.gmail.com> <20160414153336.GR2764@sar0.p1otr.com> <CALdTKe8w04MWkBJCMiLf8_BgCUfk4Nmx7dkJ=2qxmaP1yZ+mLw@mail.gmail.com> <20160414212858.GC31646@p1otr.com>
Xref csiph.com linux.debian.maint.python:8434

Show key headers only | View raw


Piotr,

On 14 April 2016 at 18:28, Piotr Ożarowski <piotr@debian.org> wrote:
> if you decide to go this way, please use python-bootstrapvz, not
> python-bootstrap-vz (module name is bootstrapvz, not bootstrap-vz)
>
> I copy-pasted your typo in package name so dh_python2 didn't find the
> right directory and didn't do its job.
>
> See attached patch (now it uses private dir)

I've reverted[1] the package split and make a few changes based on
your patch. Nice to see that it wasn't working because of a typo and
not anything more serious.

I also like the idea of not hardcoding a Python version (even a Python
2 one) in some "install" file path, as now could be changed from
"usr/lib/python2.7/dist-packages/" to "usr/share/".

Thanks again for the help and the patch.

-

Ben,

On 15 April 2016 at 00:57, Ben Finney <ben+debian@benfinney.id.au> wrote:
> Is there really a need for this separation? If the Python modules are
> installed to an application-private directory, then by definition they
> will not be publicly importable. So the Python libraries don't make much
> sense as a separately installable package.

Mostly because of the problem that I faced earlier, where the package
hadn't worked as I expected because of the "*.pyc" file. Turns out
that this was caused by a typo spotted by Piotr. The package is now
being properly in a private application directory.

Regards,
Tiago.

[1]: https://anonscm.debian.org/git/cloud/bootstrap-vz.git/commit/?id=c25f5cc8dd70456fb25e666687f68419c553059e

-- 
Tiago "Myhro" Ilieve
Blog: https://blog.myhro.info/
GitHub: https://github.com/myhro
LinkedIn: https://br.linkedin.com/in/myhro
Montes Claros - MG, Brasil

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Properly splitting Python "-doc" packages Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-14 15:20 +0200
  Re: Properly splitting Python "-doc" packages Piotr Ożarowski <piotr@debian.org> - 2016-04-14 16:00 +0200
    Re: Properly splitting Python "-doc" packages Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-14 17:10 +0200
      Re: Properly splitting Python "-doc" packages Piotr Ożarowski <piotr@debian.org> - 2016-04-14 17:40 +0200
        Re: Properly splitting Python "-doc" packages Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-14 22:20 +0200
          Re: Properly splitting Python "-doc" packages Piotr Ożarowski <piotr@debian.org> - 2016-04-14 23:30 +0200
            Re: Properly splitting Python "-doc" packages Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-15 08:40 +0200
          Re: Properly splitting Python "-doc" packages Ben Finney <ben+debian@benfinney.id.au> - 2016-04-15 06:00 +0200

csiph-web