Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93625
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <c.buhtz@posteo.jp> |
| X-Original-To | Python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.230 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.57; '*S*': 0.03; 'subject:file': 0.07; 'placeholder': 0.16; 'setuptools': 0.16; 'subject:home': 0.16; 'subject:install': 0.16; 'case.': 0.18; 'runs': 0.18; 'subject:] ': 0.19; 'file.': 0.22; 'script': 0.25; 'install': 0.25; 'skip:( 20': 0.28; 'subject:users': 0.29; 'e.g.': 0.30; 'skip:[ 10': 0.31; 'ubuntu': 0.33; 'there': 0.36; 'to:addr:python-list': 0.36; 'two': 0.37; 'charset:us-ascii': 0.37; 'means': 0.39; 'subject:[': 0.39; 'does': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'from:no real name:2**0': 0.60; 'header :Message-Id:1': 0.61; 'here.': 0.62; 'here:': 0.63; 'here': 0.66; 'received:89': 0.80; 'case?': 0.84; 'pip': 0.84; 'received:89.146': 0.84; 'skip:/ 30': 0.84; 'wheel': 0.84; 'received:185': 0.91 |
| Date | Fri, 10 Jul 2015 03:11:04 +0200 |
| From | <c.buhtz@posteo.jp> |
| To | Python-list@python.org |
| Subject | [setuptools] install data-file in users home-dir |
| X-Mailer | Claws Mail 3.9.3 (GTK+ 2.24.23; i686-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Mailman-Approved-At | Fri, 10 Jul 2015 09:09:42 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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.384.1436512184.3674.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1436512184 news.xs4all.nl 2931 [2001:888:2000:d::a6]:48649 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:93625 |
Show key headers only | View raw
I am using setuptools to create a wheel file.
There is a conf-file I want to install into the users config-diretory.
e.g. /home/user/.config/appname/app.conf
setup(...,
data_files = [ ('~/.config/appname/', ['app.conf']) ]
)
I see two problems here:
1.
I don't know the users "name". So I have to use a placeholder here.
Does '~' work here in that case?
2.
To install the wheel-file with pip I need sudo-privilegs on Ubuntu
14.04.2. That means while the install script runs I can not ask for the
users name because it is "root" in that case.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
[setuptools] install data-file in users home-dir <c.buhtz@posteo.jp> - 2015-07-10 03:11 +0200
csiph-web