Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93652
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.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 | OK 0.031 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'subject:: [': 0.03; 'yet.': 0.03; 'subject:file': 0.07; '(use': 0.09; 'here?': 0.09; 'packages.': 0.15; 'chris,': 0.16; "skip:' 60": 0.16; 'subject:home': 0.16; 'subject:install': 0.16; 'sudo': 0.16; 'wrote:': 0.16; 'config': 0.18; 'script.': 0.18; 'subject:] ': 0.19; 'permission': 0.20; 'errors': 0.23; 'header:In-Reply-To:1': 0.24; 'testing': 0.25; 'install': 0.25; 'sense': 0.26; 'chris': 0.26; 'package.': 0.27; 'correct': 0.28; "skip:' 10": 0.28; 'regular': 0.29; 'subject:users': 0.29; 'sure,': 0.29; 'environment': 0.29; 'that.': 0.30; 'maybe': 0.33; 'instead,': 0.33; 'skip:/ 20': 0.33; 'file': 0.34; 'could': 0.35; 'dir': 0.35; 'exist': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'skip:p 20': 0.38; 'thank': 0.38; 'files': 0.38; 'mean': 0.38; 'data': 0.39; 'does': 0.39; 'system.': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'from:no real name:2**0': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'header :Message-Id:1': 0.61; 'default': 0.61; 'different': 0.63; 'user,': 0.67; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'answer.': 0.72; 'received:89': 0.80; 'received:89.146': 0.84; 'reply-to:addr:python.org': 0.84; 'glad': 0.87; 'received:185': 0.91 |
| Date | Fri, 10 Jul 2015 20:33:56 +0200 |
| From | <c.buhtz@posteo.jp> |
| To | python-list@python.org |
| Subject | Re: [setuptools] install data-file in users home-dir |
| In-Reply-To | <CAMw+j7+hUvj0-T4AoqG4X2RB6XUP4U0Unf=q2M8wT1_BEWKiZA@mail.gmail.com> |
| References | <3mSGXb0tfQzFpW3@dovecot04.posteo.de> <CAMw+j7+hUvj0-T4AoqG4X2RB6XUP4U0Unf=q2M8wT1_BEWKiZA@mail.gmail.com> |
| Reply-To | python-list@python.org |
| X-Mailer | Claws Mail 3.9.3 (GTK+ 2.24.23; i686-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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.403.1436553247.3674.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1436553247 news.xs4all.nl 2961 [2001:888:2000:d::a6]:49038 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:93652 |
Show key headers only | View raw
Hi Chris, thank you for your answer. On 2015-07-10 09:39 Chris Warrick <kwpolska@gmail.com> wrote: > You should NEVER use sudo with pip. Instead, use virtualenvs as a > regular user, or create your own .deb packages. I am not sure, but maybe this is an Ubuntu-specific "problem"? When I don't use sudo I got errors like this "PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/SQLAlchemy-1.0.6.dist-info" And it make sense for me. Don't tell me about deb-Packages! :D I am stuck with that currently. I would be glad to have a correct working whl-file for my local needs. After that - maybe! - I will start again with thinking about a deb. How can virtualenv help here? I need to install python-software/packages to the system and not to a different environment or sandbox. I never used virtualenv but as I understand it it is for testing purpose not for productive system. > And you should not create the files in your install script. Instead, > install them to a different data dir (somewhere in 'share/appname' What do you mean with "data dir"? For a default config-file it could be /etc/appname/default.conf. But I have no rights for that. > should copy this file to user’s config directory (use pkg_resources to > help you get it) if it does not exist yet. I will look at this package.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [setuptools] install data-file in users home-dir <c.buhtz@posteo.jp> - 2015-07-10 20:33 +0200
csiph-web