* [devel] Указать, что в директории python3 файлы @ 2018-07-05 16:04 Антон Мидюков 2018-07-05 16:14 ` Yuri Sedunov 0 siblings, 1 reply; 9+ messages in thread From: Антон Мидюков @ 2018-07-05 16:04 UTC (permalink / raw) To: ALT Devel discussion list Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в какой-то левой директории файлы python3, а не python2? Точно помню, что уже приходилось так делать, но не могу вспомнить ни как, ни где, ни когда... -- С уважением, Антон Мидюков <antohami@altlinux.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:04 [devel] Указать, что в директории python3 файлы Антон Мидюков @ 2018-07-05 16:14 ` Yuri Sedunov 2018-07-05 16:17 ` Ivan Zakharyaschev 0 siblings, 1 reply; 9+ messages in thread From: Yuri Sedunov @ 2018-07-05 16:14 UTC (permalink / raw) To: devel В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: > Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в > какой-то левой директории файлы python3, а не python2? Точно помню, > что > уже приходилось так делать, но не могу вспомнить ни как, ни где, ни > когда... Надо обезвредить python2 AutoReqProv: nopython %define __python %nil И указать третьему питону на левый каталог с помощью %add_python3_path -- Yuri N. Sedunov ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:14 ` Yuri Sedunov @ 2018-07-05 16:17 ` Ivan Zakharyaschev 2018-07-05 16:21 ` Ivan Zakharyaschev 2018-07-05 16:22 ` Антон Мидюков 0 siblings, 2 replies; 9+ messages in thread From: Ivan Zakharyaschev @ 2018-07-05 16:17 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 647 bytes --] On Thu, 5 Jul 2018, Yuri Sedunov wrote: > В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: > > Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в > > какой-то левой директории файлы python3, а не python2? Точно помню, > > что > > уже приходилось так делать, но не могу вспомнить ни как, ни где, ни > > когда... > > Надо обезвредить python2 > AutoReqProv: nopython > %define __python %nil Может быть, раньше приходилось так делать, а сейчас стало легче и этого не нужно? > И указать третьему питону на левый каталог > с помощью %add_python3_path Не будет ли достаточно просто %add_python3_path ? -- Best regards, Ivan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:17 ` Ivan Zakharyaschev @ 2018-07-05 16:21 ` Ivan Zakharyaschev 2018-07-05 16:22 ` Антон Мидюков 1 sibling, 0 replies; 9+ messages in thread From: Ivan Zakharyaschev @ 2018-07-05 16:21 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 1110 bytes --] -- Best regards, Ivan On Thu, 5 Jul 2018, Ivan Zakharyaschev wrote: > On Thu, 5 Jul 2018, Yuri Sedunov wrote: > > > В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: > > > Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в > > > какой-то левой директории файлы python3, а не python2? Точно помню, > > > что > > > уже приходилось так делать, но не могу вспомнить ни как, ни где, ни > > > когда... > > > > Надо обезвредить python2 > > AutoReqProv: nopython > > %define __python %nil > > Может быть, раньше приходилось так делать, а сейчас стало легче и этого не > нужно? > > > И указать третьему питону на левый каталог > > с помощью %add_python3_path > > Не будет ли достаточно просто %add_python3_path ? Да, теперь в python.req.files есть код: is_python3_path() { local f p f="$1"; shift for p in ${RPM_PYTHON3_PATH-} ${RPM_PYTHON3_COMPILE_INCLUDE-}; do if [ -z "${f##${RPM_BUILD_ROOT-}${p%%/}/*}" ]; then return 0 fi done return 1 } ... # the rest is to deal with *.py files if is_python3_path "$f"; then continue fi .... > > -- > Best regards, > Ivan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:17 ` Ivan Zakharyaschev 2018-07-05 16:21 ` Ivan Zakharyaschev @ 2018-07-05 16:22 ` Антон Мидюков 2018-07-05 16:32 ` Антон Мидюков 1 sibling, 1 reply; 9+ messages in thread From: Антон Мидюков @ 2018-07-05 16:22 UTC (permalink / raw) To: devel 05.07.2018 23:17, Ivan Zakharyaschev пишет: > On Thu, 5 Jul 2018, Yuri Sedunov wrote: > >> В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: >>> Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в >>> какой-то левой директории файлы python3, а не python2? Точно помню, >>> что >>> уже приходилось так делать, но не могу вспомнить ни как, ни где, ни >>> когда... >> Надо обезвредить python2 >> AutoReqProv: nopython >> %define __python %nil > Может быть, раньше приходилось так делать, а сейчас стало легче и этого не > нужно? > >> И указать третьему питону на левый каталог >> с помощью %add_python3_path > Не будет ли достаточно просто %add_python3_path ? Проверил. Да, достаточно. Спасибо! -- С уважением, Антон Мидюков <antohami@altlinux.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:22 ` Антон Мидюков @ 2018-07-05 16:32 ` Антон Мидюков 2018-07-06 9:06 ` Ivan Zakharyaschev 0 siblings, 1 reply; 9+ messages in thread From: Антон Мидюков @ 2018-07-05 16:32 UTC (permalink / raw) To: devel 05.07.2018 23:22, Антон Мидюков пишет: > > > 05.07.2018 23:17, Ivan Zakharyaschev пишет: >> On Thu, 5 Jul 2018, Yuri Sedunov wrote: >> >>> В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: >>>> Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в >>>> какой-то левой директории файлы python3, а не python2? Точно помню, >>>> что >>>> уже приходилось так делать, но не могу вспомнить ни как, ни где, ни >>>> когда... >>> Надо обезвредить python2 >>> AutoReqProv: nopython >>> %define __python %nil >> Может быть, раньше приходилось так делать, а сейчас стало легче и >> этого не >> нужно? >> >>> И указать третьему питону на левый каталог >>> с помощью %add_python3_path >> Не будет ли достаточно просто %add_python3_path ? > Проверил. Да, достаточно. Спасибо! > Оказалось всё-таки недостаточно. Нужно было обезвредить возникающую зависимость python2.7(obspython), и рецепт Юрия помог. За что ему спасибо! -- С уважением, Антон Мидюков <antohami@altlinux.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-05 16:32 ` Антон Мидюков @ 2018-07-06 9:06 ` Ivan Zakharyaschev 2018-07-06 9:08 ` Антон Мидюков 0 siblings, 1 reply; 9+ messages in thread From: Ivan Zakharyaschev @ 2018-07-06 9:06 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 1222 bytes --] On Thu, 5 Jul 2018, Антон Мидюков wrote: > 05.07.2018 23:22, Антон Мидюков пишет: > > > > > > 05.07.2018 23:17, Ivan Zakharyaschev пишет: > > > On Thu, 5 Jul 2018, Yuri Sedunov wrote: > > > > > > > В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: > > > > > Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в > > > > > какой-то левой директории файлы python3, а не python2? Точно помню, > > > > > что > > > > > уже приходилось так делать, но не могу вспомнить ни как, ни где, ни > > > > > когда... > > > > Надо обезвредить python2 > > > > AutoReqProv: nopython > > > > %define __python %nil > > > Может быть, раньше приходилось так делать, а сейчас стало легче и этого не > > > нужно? > > > > > > > И указать третьему питону на левый каталог > > > > с помощью %add_python3_path > > > Не будет ли достаточно просто %add_python3_path ? > > Проверил. Да, достаточно. Спасибо! > > > Оказалось всё-таки недостаточно. Нужно было обезвредить возникающую > зависимость python2.7(obspython), и рецепт Юрия помог. За что ему спасибо! Попробую не забыть и обратить на это внимание. Всё-таки было задумано, чтобы было проще. О сборке какого, кстати, пакета речь? Спасиюо Юрию за помощь! -- Best regards, Ivan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-06 9:06 ` Ivan Zakharyaschev @ 2018-07-06 9:08 ` Антон Мидюков 2018-07-06 15:14 ` Антон Мидюков 0 siblings, 1 reply; 9+ messages in thread From: Антон Мидюков @ 2018-07-06 9:08 UTC (permalink / raw) To: devel 06.07.2018 16:06, Ivan Zakharyaschev пишет: > On Thu, 5 Jul 2018, Антон Мидюков wrote: > >> 05.07.2018 23:22, Антон Мидюков пишет: >>> >>> 05.07.2018 23:17, Ivan Zakharyaschev пишет: >>>> On Thu, 5 Jul 2018, Yuri Sedunov wrote: >>>> >>>>> В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: >>>>>> Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в >>>>>> какой-то левой директории файлы python3, а не python2? Точно помню, >>>>>> что >>>>>> уже приходилось так делать, но не могу вспомнить ни как, ни где, ни >>>>>> когда... >>>>> Надо обезвредить python2 >>>>> AutoReqProv: nopython >>>>> %define __python %nil >>>> Может быть, раньше приходилось так делать, а сейчас стало легче и этого не >>>> нужно? >>>> >>>>> И указать третьему питону на левый каталог >>>>> с помощью %add_python3_path >>>> Не будет ли достаточно просто %add_python3_path ? >>> Проверил. Да, достаточно. Спасибо! >>> >> Оказалось всё-таки недостаточно. Нужно было обезвредить возникающую >> зависимость python2.7(obspython), и рецепт Юрия помог. За что ему спасибо! > Попробую не забыть и обратить на это внимание. Всё-таки было задумано, > чтобы было проще. О сборке какого, кстати, пакета речь? > > Спасиюо Юрию за помощь! obs-studio. Задание 209578 -- С уважением, Антон Мидюков <antohami@altlinux.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Указать, что в директории python3 файлы 2018-07-06 9:08 ` Антон Мидюков @ 2018-07-06 15:14 ` Антон Мидюков 0 siblings, 0 replies; 9+ messages in thread From: Антон Мидюков @ 2018-07-06 15:14 UTC (permalink / raw) To: devel 06.07.2018 16:08, Антон Мидюков пишет: > 06.07.2018 16:06, Ivan Zakharyaschev пишет: >> On Thu, 5 Jul 2018, Антон Мидюков wrote: >> >>> 05.07.2018 23:22, Антон Мидюков пишет: >>>> >>>> 05.07.2018 23:17, Ivan Zakharyaschev пишет: >>>>> On Thu, 5 Jul 2018, Yuri Sedunov wrote: >>>>> >>>>>> В Чт, 05/07/2018 в 23:04 +0700, Антон Мидюков пишет: >>>>>>> Подскажите, пожалуйста, каким макросом в спеке нужно указать, что в >>>>>>> какой-то левой директории файлы python3, а не python2? Точно помню, >>>>>>> что >>>>>>> уже приходилось так делать, но не могу вспомнить ни как, ни где, ни >>>>>>> когда... >>>>>> Надо обезвредить python2 >>>>>> AutoReqProv: nopython >>>>>> %define __python %nil >>>>> Может быть, раньше приходилось так делать, а сейчас стало легче и >>>>> этого не >>>>> нужно? >>>>> >>>>>> И указать третьему питону на левый каталог >>>>>> с помощью %add_python3_path >>>>> Не будет ли достаточно просто %add_python3_path ? >>>> Проверил. Да, достаточно. Спасибо! >>>> >>> Оказалось всё-таки недостаточно. Нужно было обезвредить возникающую >>> зависимость python2.7(obspython), и рецепт Юрия помог. За что ему >>> спасибо! >> Попробую не забыть и обратить на это внимание. Всё-таки было задумано, >> чтобы было проще. О сборке какого, кстати, пакета речь? >> >> Спасиюо Юрию за помощь! > obs-studio. Задание 209578 > Сегодня разобрался откуда шла зависимость на python2.7(obspython). Это другой файл, в другом месте. Так что нужно было всего лишь путь до этого файла также добавить в %add_python3_path. Так что вердикт: %add_python3_path достаточно, доделывать его нет необходимости. -- С уважением, Антон Мидюков <antohami@altlinux.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-07-06 15:14 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-07-05 16:04 [devel] Указать, что в директории python3 файлы Антон Мидюков 2018-07-05 16:14 ` Yuri Sedunov 2018-07-05 16:17 ` Ivan Zakharyaschev 2018-07-05 16:21 ` Ivan Zakharyaschev 2018-07-05 16:22 ` Антон Мидюков 2018-07-05 16:32 ` Антон Мидюков 2018-07-06 9:06 ` Ivan Zakharyaschev 2018-07-06 9:08 ` Антон Мидюков 2018-07-06 15:14 ` Антон Мидюков
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git