Bug 456 - 依赖python library的spec无法build
Summary: 依赖python library的spec无法build
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: SIG Packages (show other bugs) SIG Packages
Version: 8.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wuyihao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 12:06 UTC by wuyihao
Modified: 2022-03-25 07:09 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wuyihao 2022-02-15 12:06:49 UTC
Description of problem:
依赖python library的spec无法build

Version-Release number of selected component (if applicable):


How reproducible:
必现

Steps to Reproduce:
1.BuildRequires里增加比如python2-lxml
2.触发打包

Actual results:
打包成功

Expected results:
提示python2-lxml包不存在

Additional info:
实际上最终的yum源中是有python2-lxml的
Comment 1 葛立伟 alibaba_cloud_group 2022-02-17 10:12:07 UTC
anolis8里的默认环境是python3,python2是module, 如果你以普通包的形式绑定python2构建,那可能会有潜在的安装或者运行时的问题,请确认是否一定要这样做?
Comment 2 wuyihao 2022-02-17 10:21:03 UTC
(In reply to 葛立伟 from comment #1)
> anolis8里的默认环境是python3,python2是module,
> 如果你以普通包的形式绑定python2构建,那可能会有潜在的安装或者运行时的问题,请确认是否一定要这样做?

确认要这样做,这个包的用户可以确保都是python2,问题可控