Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59387
| References | <510a8652-1097-4327-9dda-56454142cda4@googlegroups.com> <mailman.2562.1384386029.18130.python-list@python.org> <7ec1dd11-45f9-414f-9ee7-906a2b265677@googlegroups.com> |
|---|---|
| Date | 2013-11-14 13:00 +1100 |
| Subject | Re: chroot to install packages |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2575.1384394449.18130.python-list@python.org> (permalink) |
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