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

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

    <bug>
          <bug_id>36500</bug_id>
          
          <creation_ts>2019-04-04 01:27:48 +0300</creation_ts>
          <short_desc>[FR][PATCH] параллельная сборка</short_desc>
          <delta_ts>2021-04-12 07:09:43 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-numpy</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>https://lists.altlinux.org/pipermail/devel/2019-April/207556.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>cow</cc>
    
    <cc>darktemplar</cc>
    
    <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>imz</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>nbr</cc>
    
    <cc>qa_viy</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180370</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2019-04-04 01:27:48 +0300</bug_when>
    <thetext>По мотивам текущего обсуждения в devel@ предлагаю по возможности перевести пакет на параллельную сборку -- сейчас он собирается ~20 мин на x86 и ~2 ч на e2k
(максимум в один поток и там, и там).

Пишут, что numpy умеет параллельно собираться с 1.10.0:

---
From NumPy 1.10.0 on it’s also possible to do a parallel build with:

python setup.py build -j 4 install --prefix $HOME/.local

This will compile numpy on 4 CPUs and install it into the specified prefix. to perform a parallel in-place build, run:

python setup.py build_ext --inplace -j 4

The number of build jobs can also be specified via the environment variable NPY_NUM_BUILD_JOBS.
--- https://docs.scipy.org/doc/numpy-1.15.0/user/building.html#parallel-builds

Проверил -- помогает добавить после %add_optflags такое:

export NPY_NUM_BUILD_JOBS=%__nprocs

(пакет начинает собираться примерно вдвое быстрее в целом)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197804</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2021-04-12 07:09:43 +0300</bug_when>
    <thetext>Будем опираться на https://github.com/numpy/numpy/issues/13080

У меня на версии 1.20.1 ничего не помогает.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>