<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>13941</bug_id>
          
          <creation_ts>2008-01-08 23:19:19 +0300</creation_ts>
          <short_desc>Предлагается добавить python_build/python_install</short_desc>
          <delta_ts>2009-04-10 11:24:47 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build-python</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>darktemplar</cc>
    
    <cc>george</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>rt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60662</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-01-08 23:19:19 +0300</bug_when>
    <thetext>Предлагается добавить макросы
%python_build %__python setup.py build
%python_install %__python setup.py --root=%buildroot --optimize=2 install

Клоню к тому, чтобы выстроилась единая линия:
для секции %build
python/ruby/pear _build
для секции %install
python/ruby/pear _install

См. также
https://bugzilla.altlinux.org/show_bug.cgi?id=13933</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60664</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-08 23:25:14 +0300</bug_when>
    <thetext>reassign</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64250</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-02-21 01:15:10 +0300</bug_when>
    <thetext>Мне кажется порой...
что цены растут быстрее зарплаты,
а баги появляются быстрее, чем закрываются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70981</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-05-30 09:54:08 +0400</bug_when>
    <thetext>Господа, пожалуйста, отреагируйте.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72810</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-06-20 01:34:40 +0400</bug_when>
    <thetext>Если я предоставлю патч, это поможет делу?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81163</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-11-16 17:08:19 +0300</bug_when>
    <thetext>Так как не дождался никакой реакции, пока добавил предлагаемые макросы в rpm-build-compat:
* Сбт Июл 05 2008 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 1.2-alt1
- add python_build/python_install macroses
- remove NEWS file, see changelog from the package for news
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86068</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-02-18 04:38:03 +0300</bug_when>
    <thetext>(In reply to comment #0)
&gt; Предлагается добавить макросы
&gt; %python_build %__python setup.py build

Допустим.  Возможно, требуется ещё и шапка, аналогичная используемой в %configure:

CFLAGS=&quot;${CFLAGS:-%optflags}&quot;; export CFLAGS;
CXXFLAGS=&quot;${CXXFLAGS:-%optflags}&quot;; export CXXFLAGS;
FFLAGS=&quot;${FFLAGS:-%optflags}&quot;; export FFLAGS;
%__python setup.py build

&gt; %python_install %__python setup.py --root=%buildroot --optimize=2 install

Зачем нужен --optimize=2, если по окончании %install всё равно модули компилируются?

Предлагаю такой вариант:
%__python setup.py install --skip-build --root=%buildroot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86104</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-02-18 23:59:39 +0300</bug_when>
    <thetext>В 0.33.1-alt1 добавил предложенный мной вариант.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89125</commentid>
    <comment_count>8</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2009-04-10 06:22:29 +0400</bug_when>
    <thetext>rpm-build-python-0.33.1-alt1 -&gt; sisyphus:

* Wed Feb 18 2009 Dmitry V. Levin &lt;ldv@altlinux&gt; 0.33.1-alt1

- Added %python_build and %python_install macros (closes: #13941).
- Relocated macro files to /usr/lib/rpm/macros.d/.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>