{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/874","repository_url":"https://api.github.com/repos/projectatomic/rpm-ostree","labels_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/874/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/874/comments","events_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/874/events","html_url":"https://github.com/projectatomic/rpm-ostree/issues/874","id":242639333,"node_id":"MDU6SXNzdWUyNDI2MzkzMzM=","number":874,"title":"How to install python packages with pip","user":{"login":"keyingliu","id":11283361,"node_id":"MDQ6VXNlcjExMjgzMzYx","avatar_url":"https://avatars1.githubusercontent.com/u/11283361?v=4","gravatar_id":"","url":"https://api.github.com/users/keyingliu","html_url":"https://github.com/keyingliu","followers_url":"https://api.github.com/users/keyingliu/followers","following_url":"https://api.github.com/users/keyingliu/following{/other_user}","gists_url":"https://api.github.com/users/keyingliu/gists{/gist_id}","starred_url":"https://api.github.com/users/keyingliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyingliu/subscriptions","organizations_url":"https://api.github.com/users/keyingliu/orgs","repos_url":"https://api.github.com/users/keyingliu/repos","events_url":"https://api.github.com/users/keyingliu/events{/privacy}","received_events_url":"https://api.github.com/users/keyingliu/received_events","type":"User","site_admin":false},"labels":[{"id":71731342,"node_id":"MDU6TGFiZWw3MTczMTM0Mg==","url":"https://api.github.com/repos/projectatomic/rpm-ostree/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-13T09:26:37Z","updated_at":"2018-07-08T10:35:18Z","closed_at":"2018-03-30T00:41:13Z","author_association":"NONE","body":"```\r\nrpm-ostree --version\r\nrpm-ostree:\r\n Version: 2017.4\r\n Git: ecca1272ab5eb8526ab79926231576c78384b5c8\r\n Features:\r\n  - compose\r\n```\r\n\r\nOS: `CentOS Linux release 7.3.1611`\r\n\r\nMy ostree is for centos, and I would like to install some python packages with pip, I tried to have the packages installed in `postprocess-script`, but from the document, I was told there is no network access, I'm trying to download the python packages, and add them in `add-files`, but the files are added after post process.\r\n\r\nCan you please let me know if there are any other ways to install python packages with pip during ostree compose?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/comments/403278355","html_url":"https://github.com/projectatomic/rpm-ostree/issues/874#issuecomment-403278355","issue_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/874","id":403278355,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzI3ODM1NQ==","user":{"login":"deuscapturus","id":5497572,"node_id":"MDQ6VXNlcjU0OTc1NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/5497572?v=4","gravatar_id":"","url":"https://api.github.com/users/deuscapturus","html_url":"https://github.com/deuscapturus","followers_url":"https://api.github.com/users/deuscapturus/followers","following_url":"https://api.github.com/users/deuscapturus/following{/other_user}","gists_url":"https://api.github.com/users/deuscapturus/gists{/gist_id}","starred_url":"https://api.github.com/users/deuscapturus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deuscapturus/subscriptions","organizations_url":"https://api.github.com/users/deuscapturus/orgs","repos_url":"https://api.github.com/users/deuscapturus/repos","events_url":"https://api.github.com/users/deuscapturus/events{/privacy}","received_events_url":"https://api.github.com/users/deuscapturus/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T10:35:18Z","updated_at":"2018-07-08T10:35:18Z","author_association":"NONE","body":"After some experimentation with the features added in https://github.com/projectatomic/rpm-ostree/pull/1039 I was able to build a tree that included packages from pip.\r\n\r\n```\r\n# Preparation steps\r\nmkdir /var/tmp/rpm-ostree\r\nostree init --repo=/var/www/html/ostree init --mode=archive\r\n\r\n# Build Tree\r\n\r\nrpm-ostree compose install --repo=/var/www/html/ostree ~/fedora-atomic/fedora-atomic-host.json /var/tmp/rpm-ostree\r\n\r\n# Install some pip packages into the tree\r\n\r\npip install --ignore-installed --root /var/tmp/rpm-ostree/rootfs python-consul\r\npip install --ignore-installed --root /var/tmp/rpm-ostree/rootfs boto3\r\npip install --ignore-installed --root /var/tmp/rpm-ostree/rootfs boto\r\n\r\n# Run postprocess and commit the tree\r\n\r\ncd  /var/tmp/rpm-ostree/rootfs\r\nrpm-ostree compose postprocess . ~/fedora-atomic/fedora-atomic-host.json rpm-ostree compose commit --repo=/var/www/html/ostree ~/fedora-atomic/fedora-atomic-host.json /var/tmp/rpm-ostree/rootfs\r\n```\r\n\r\n"}}
{"actor":{"display_login":"deuscapturus"}}