Title: Suggestions on Python processing of cloud.spec file in packaging directory · Issue #4513 · apache/cloudstack · GitHub
Open Graph Title: Suggestions on Python processing of cloud.spec file in packaging directory · Issue #4513 · apache/cloudstack
X Title: Suggestions on Python processing of cloud.spec file in packaging directory · Issue #4513 · apache/cloudstack
Description: ISSUE TYPE Improvement Request COMPONENT NAME packaging CLOUDSTACK VERSION 4.15 CONFIGURATION N/A otherwise OS / ENVIRONMENT CentOS-8.2 SUMMARY In the packaging\centos7 and packaging\centos8 directories, there are many problems about Pyt...
Open Graph Description: ISSUE TYPE Improvement Request COMPONENT NAME packaging CLOUDSTACK VERSION 4.15 CONFIGURATION N/A otherwise OS / ENVIRONMENT CentOS-8.2 SUMMARY In the packaging\centos7 and packaging\centos8 direct...
X Description: ISSUE TYPE Improvement Request COMPONENT NAME packaging CLOUDSTACK VERSION 4.15 CONFIGURATION N/A otherwise OS / ENVIRONMENT CentOS-8.2 SUMMARY In the packaging\centos7 and packaging\centos8 direct...
Opengraph URL: https://github.com/apache/cloudstack/issues/4513
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestions on Python processing of cloud.spec file in packaging directory","articleBody":"\u003c!--\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release and master branch are affected too.\r\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\r\n--\u003e\r\n\r\n##### ISSUE TYPE\r\n * Improvement Request\r\n\r\n\r\n##### COMPONENT NAME\r\npackaging\r\n\r\n\r\n##### CLOUDSTACK VERSION\r\n4.15\r\n\r\n##### CONFIGURATION\r\nN/A otherwise\r\n\r\n##### OS / ENVIRONMENT\r\nCentOS-8.2\r\n\r\n##### SUMMARY\r\nIn the packaging\\centos7 and packaging\\centos8 directories, there are many problems about Python processing in the cloud.spec file.\r\n1. python2 is used in the current compilation environment, while python3 is used in some running environments, which causes confusion. It is suggested that package dependency of the running environment should not be handled in the compilation environment, and the basic environmental requirements should be explained in the installation document of the running environment. Considering the transitional period between two major versions of python, it is recommended to use python2 only when compiling and python3 as much as possible in the running environment.\r\n2. It is not recommended to download the package of python3 running environment and put it in RPM file at compile time, but to run “pip install \" at install time, because these installation packages are updated frequently and should not be limited to a lower version by cloudstack. At the same time, because of the existence of mirror image, it is more appropriate for pip to download from the mirror image site faster.\r\n3. It is not recommended to add dependencies such as Requires: python36-libvirt, Requires: python, Requires: python3, and Requires: python3-pip to cloud.spec. At present, Python is used for compilation and installation, or tar package installation directly, instead of RPM installation. After I cancel these dependencies, I compile smoothly. If I add these, I have to install python2 and python3 at the same time using RPM, which is easy to cause conflicts.\r\n\r\nIn addition, it is suggested that, when the two major versions of python are used together, the commands previously used in python2 should be modified instead of python commands, so as to be clearly distinguished from python3.\r\n\r\nAdd the compilation environment python processing way:\r\nOperating system: CentOS-8.2\r\nPython2 installation uses yum install python2\r\nPython3.7.9 is compiled with source code and installed in python3.7 under the home directory.\r\n\r\n[cloud.spec.zip](https://github.com/apache/cloudstack/files/5688626/cloud.spec.zip)\r\n\r\n\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n##### EXPECTED RESULTS\r\n\r\n##### ACTUAL RESULTS\r\n\r\n","author":{"url":"https://github.com/saliven1970","@type":"Person","name":"saliven1970"},"datePublished":"2020-12-02T08:03:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/4513/cloudstack/issues/4513"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19596f1c-a1dc-d1aa-f46f-2eeb482c5cea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82A2:3EE845:43FA6CC:5DB3FF4:6A4F4D7B |
| html-safe-nonce | 15707c33a3d2f40366497b094620ebb1e3a1b438c74b116806c702088a1df083 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkEyOjNFRTg0NTo0M0ZBNkNDOjVEQjNGRjQ6NkE0RjREN0IiLCJ2aXNpdG9yX2lkIjoiNzE0NDUyNDk1NjE5ODA0NTM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2dc9091661e9d70bc1d0d88c105892b63d7715f645bfc46be035a7f22cc5de24 |
| hovercard-subject-tag | issue:755042976 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/4513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c6a97e15f40c194c3d668aad581911456617fb3054a3a79bea5d01fda4e0a13/apache/cloudstack/issues/4513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c6a97e15f40c194c3d668aad581911456617fb3054a3a79bea5d01fda4e0a13/apache/cloudstack/issues/4513 |
| og:image:alt | ISSUE TYPE Improvement Request COMPONENT NAME packaging CLOUDSTACK VERSION 4.15 CONFIGURATION N/A otherwise OS / ENVIRONMENT CentOS-8.2 SUMMARY In the packaging\centos7 and packaging\centos8 direct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saliven1970 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width