简体   繁体   English

RPM与Python Virtualenv冲突

[英]RPM conflicts with Python Virtualenv

We use a RHEL5 cluster, and we make custom RPM's of our applications so we can deploy them in the field. 我们使用RHEL5群集,并为应用程序创建自定义RPM,以便我们可以在现场部署它们。

I am having an unusual issue where a specific directory within our virtualenv is causing an RPM conflict and I can't figure out why. 我遇到了一个不寻常的问题,其中我们的virtualenv中的特定目录导致RPM冲突,我不知道为什么。

We have a package (python26-2.6.5-6.el5.x86_64) that provides our main Python executable. 我们有一个软件包(python26-2.6.5-6.el5.x86_64)提供了我们的主要Python可执行文件。 It's installed for other services, but not used by our project. 它已安装用于其他服务,但未被我们的项目使用。 Our project uses a virtualenv. 我们的项目使用virtualenv。

For some reason the 'encodings' directory of the virtualenv is causing conflicts. 由于某种原因,virtualenv的“ encodings”目录引起冲突。

Here is the files provided by the python26 package: https://gist.github.com/reidja/5749089#file-python26-file-list 以下是python26软件包提供的文件: https ://gist.github.com/reidja/5749089#file-python26-file-list

Here is our spec file: https://gist.github.com/reidja/5749089/raw/8c91a238e488b93d3ca9c4ce07c8eada360095dd/Our+Spec+File 这是我们的规格文件: https : //gist.github.com/reidja/5749089/raw/8c91a238e488b93d3ca9c4ce07c8eada360095dd/Our+Spec+File

Here is the output from yum: https://gist.github.com/reidja/5749089/raw/5a543765bfadfb384b6136420527ce941df55bb6/yum+localinstall 这是yum的输出: https : //gist.github.com/reidja/5749089/raw/5a543765bfadfb384b6136420527ce941df55bb6/yum+localinstall

If someone could point me in the right direction it would be greatly appreciated. 如果有人能指出我正确的方向,将不胜感激。

Our custom build environment was pulling in symlinks as files (like a cp -H). 我们的自定义构建环境将符号链接作为文件(如cp -H)拉入。 This was causing the encodings directory in our virtualenv to come in as real files as opposed to symlinking against /usr/lib64 这导致我们的virtualenv中的encodings目录作为真实文件进入,而不是针对/ usr / lib64的符号链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM