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


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

RE:building manpages via setup.py

Path csiph.com!goblin3!goblin2!goblin.stu.neva.ru!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Newsgroups linux.debian.maint.python
Subject RE:building manpages via setup.py
Date Thu, 03 Aug 2017 16:20:02 +0200
Message-ID <uap8K-17l-21@gated-at.bofh.it> (permalink)
References <u9GEH-5cQ-19@gated-at.bofh.it> <u9Hr4-5Jr-23@gated-at.bofh.it> <uap8K-17l-23@gated-at.bofh.it> <uaoFI-Fn-11@gated-at.bofh.it>
X-Original-To Piotr Ożarowski <piotr@debian.org>, "debian-python@lists.debian.org" <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Aug 3 14:18:24 2017
Old-Return-Path <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Amavis-Spam-Status No, score=0 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, RCVD_IN_DNSWL_NONE=-0.0001, THREADTOPIC=2] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -6.1
Dkim-Filter OpenDKIM Filter v2.10.3 poussette.synchrotron-soleil.fr 3134660084
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1501768911; bh=JFJcqugbf96cxXqtfkc7KzrsyS1mie9yt7KphYUtm2U=; h=From:To:Subject:Date:References:In-Reply-To:From; b=RatRkU7f4MFfwfvByLA9cZc/e1ok/F9Ib3EdG/CFXGwEqG5tCZYCfQpBML5KZSgJH u7wtFZXEEA7g261S7UjNVbCe5DoiLaJEzPCa1lExGbTrdR0WVlcYi6eypATVk4CsrW kLPjH7IEX/Ez4h6QtyQH0XVhVg4/h5IfJU+WsYBY=
Dkim-Filter OpenDKIM Filter v2.10.3 poussette.synchrotron-soleil.fr 70BB26007D
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1501768906; bh=JFJcqugbf96cxXqtfkc7KzrsyS1mie9yt7KphYUtm2U=; h=From:To:Subject:Date:References:In-Reply-To:From; b=hRlf/ChRnUtxrS+qo4OmmhK5j2v+u9LTPvI0wJQeBEP6GANFT9LxKz9UzA3PxyfvQ sC78EUDN3ntXMJtNoAmTZGC2JttPTH6hcz6uiwfkSHVJBtlnDAqU8klJbEicMvEYny M04dGaX/o0brQUbSf3D/2S18hXEzfqU1vMPGgqMI=
Thread-Topic building manpages via setup.py
Thread-Index AdMKnYeNbtHGA2ChRMa/5+FgMHXlSAALU42AACRWRyD//+WzAIAB3eYlgAA8QZ6AAAizHg==
Accept-Language fr-FR, en-US
Content-Language fr-FR
X-Originating-IP [195.221.0.171]
Content-Type text/plain; charset="iso-8859-2"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15065
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53BB3FA195@SUN-DAG3.synchrotron-soleil.fr
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 3 Aug 2017 14:01:45 +0000
X-Original-Message-ID <A2A20EC3B8560D408356CAC2FC148E53BB3FA195@SUN-DAG3.synchrotron-soleil.fr>
X-Original-References <A2A20EC3B8560D408356CAC2FC148E53BB3F8A26@SUN-DAG3.synchrotron-soleil.fr> <20170801153401.6aqaw4syh3pvzchb@sar0.p1otr.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9C43@SUN-DAG3.synchrotron-soleil.fr>,<20170802072020.3nwvcsvoly4vycit@sar0.p1otr.com>,<A2A20EC3B8560D408356CAC2FC148E53BB3FA0F5@SUN-DAG3.synchrotron-soleil.fr>,<A2A20EC3B8560D408356CAC2FC148E53BB3FA176@SUN-DAG3.synchrotron-soleil.fr> <A2A20EC3B8560D408356CAC2FC148E53BB3FA176@SUN-DAG3.synchrotron-soleil.fr>
Xref csiph.com linux.debian.maint.python:9684

Show key headers only | View raw


Ok, If I replace 

'{interpreter} setup.py build_man'

 by

'env; setup.py build_man'

I get this

HOME=/home/picca
PYTHONPATH=/home/picca/Debian/silx/silx/.pybuild/pythonX.Y_2.7/build

but If I read the code of 

def create_pydistutils_cfg(func):
    """distutils doesn't have sane command-line API - this decorator creates
    .pydistutils.cfg file to workaround it

    hint: if you think this is plain stupid, please don't read
    distutils/setuptools/distribute sources
    """

    def wrapped_func(self, context, args, *oargs, **kwargs):
        fpath = join(args['home_dir'], '.pydistutils.cfg')
        if not exists(fpath):
            with open(fpath, 'w', encoding='utf-8') as fp:
                lines = ['[clean]\n',
                         'all=1\n',
                         '[build]\n',
                         'build-lib={}\n'.format(args['build_dir']),
                         '[install]\n',
                         'force=1\n',
                         'install-layout=deb\n',
                         'install-scripts=/usr/bin\n',
                         'install-lib={}\n'.format(args['install_dir']),
                         '[easy_install]\n',
                         'allow_hosts=None\n']
                log.debug('pydistutils config file:\n%s', ''.join(lines))
                fp.writelines(lines)
        context['ENV']['HOME'] = args['home_dir']
        return func(self, context, args, *oargs, **kwargs)

we can see that the HOME should be home_dir

HOME should be /home/picca/Debian/silx/silx/.pybuild/pythonX.Y_2.7

I think that there is a problem here.

right ?

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


Thread

building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-01 16:50 +0200
  Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-01 17:00 +0200
    RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-01 17:50 +0200
  Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-01 17:40 +0200
    RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 09:20 +0200
      Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-02 09:30 +0200
        Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-02 09:50 +0200
          Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 09:50 +0200
            Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 10:20 +0200
              RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 10:40 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 10:40 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 11:20 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 11:30 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 12:10 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 12:50 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 14:30 +0200
            RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 10:30 +0200
        RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 09:50 +0200
        RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 12:20 +0200
          RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 15:50 +0200
            RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 16:20 +0200

csiph-web