Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59387
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.029 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'that?': 0.05; 'things,': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'garg': 0.16; 'posting,': 0.16; 'processes.': 0.16; 'subject:install': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'thu,': 0.19; 'separate': 0.22; 'url:moin': 0.24; 'posts': 0.26; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'me?': 0.32; 'skip:c 30': 0.32; 'url:python': 0.33; 'skip:d 20': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; '14,': 0.36; 'url:org': 0.36; 'two': 0.37; 'nov': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'first': 0.61; 'making': 0.63; "it'd": 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=y6XDqst2354tPqYg8mK2lie8/g+ZUlxD+bzfSEOcjJ4=; b=AZa6bhpNb3ueg4SoIf696IbpRFDGvWUecUyq8iuD+nS/3/7Smw1/+Eek/OXkXkXdDf iN2TUSvtypJlKV4NMUbY3HG6tD5HpyqkPObZd1/AKvzKpQUXoeQKnvDPhmeLr+TIDEF/ EEYi/MsNezq3x24VpzGrOKxqRUHE/88Dk6cmMxDOzc4jF0t7t9ZUdkxrT3DE73wrX05J vYVPEEHgBkhHTDoLUh1oeka4p8br/5B69d921SiZ4PZJ5lEA/m9b7r2grM821OyKO7hd 5+yXYzn0/uaAUqLgA6lpoZi+wrtgN7bHF/gnr888+FNgcM7zSrWYITeZWn29SMdQ6mCs pBtQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.135.100 with SMTP id pr4mr45211665pbb.62.1384394439780; Wed, 13 Nov 2013 18:00:39 -0800 (PST) |
| In-Reply-To | <7ec1dd11-45f9-414f-9ee7-906a2b265677@googlegroups.com> |
| References | <510a8652-1097-4327-9dda-56454142cda4@googlegroups.com> <mailman.2562.1384386029.18130.python-list@python.org> <7ec1dd11-45f9-414f-9ee7-906a2b265677@googlegroups.com> |
| Date | Thu, 14 Nov 2013 13:00:39 +1100 |
| Subject | Re: chroot to install packages |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2575.1384394449.18130.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1384394449 news.xs4all.nl 15994 [2001:888:2000:d::a6]:57688 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:59387 |
Show key headers only | View raw
On Thu, Nov 14, 2013 at 12:52 PM, Himanshu Garg <hgarg.india@gmail.com> wrote:
> How can I do that? Can you guide me?
First off: Google Groups is making your posts very ugly. Please either
fix them before posting, or use a better client.
https://wiki.python.org/moin/GoogleGroupsPython
As to chrooting: It'd look something like this, in pseudocode:
if sys.argv[1] == "chroot":
chroot("/some/path/to/new/root")
do_stuff_in_chroot()
do_more_stuff_in_chroot()
exit(0)
do_stuff_not_in_chroot()
os.system("python my_script_name.py chroot")
do_more_stuff_not_in_chroot()
There are many ways to do things, but that's one of the simplest. You
have two completely separate processes.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
chroot to install packages Himanshu Garg <hgarg.india@gmail.com> - 2013-11-13 06:31 -0800
Re: chroot to install packages Chris Angelico <rosuav@gmail.com> - 2013-11-14 10:40 +1100
Re: chroot to install packages Himanshu Garg <hgarg.india@gmail.com> - 2013-11-13 17:52 -0800
Re: chroot to install packages Chris Angelico <rosuav@gmail.com> - 2013-11-14 13:00 +1100
Re: chroot to install packages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-14 02:12 +0000
Re: chroot to install packages Chris Angelico <rosuav@gmail.com> - 2013-11-14 13:26 +1100
Re: chroot to install packages Himanshu Garg <hgarg.india@gmail.com> - 2013-11-14 01:29 -0800
Re: chroot to install packages Chris Angelico <rosuav@gmail.com> - 2013-11-14 20:32 +1100
Re: chroot to install packages Himanshu Garg <hgarg.india@gmail.com> - 2013-11-14 01:41 -0800
csiph-web