Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82124
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <prvs=412f4c609=jeanmichel@sequans.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.044 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'dev': 0.07; 'subject:module': 0.09; 'subject:question': 0.10; 'cc:addr:python- list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'imports': 0.16; 'setuptools': 0.16; 'setuptools,': 0.16; 'subject: \n ': 0.16; 'subject:import': 0.16; 'subject:questions': 0.16; 'sys.path': 0.16; 'code.': 0.18; 'variable': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'install': 0.23; 'package.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'distribute': 0.26; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; 'relative': 0.30; 'probably': 0.32; '-----': 0.33; 'but': 0.35; 'add': 0.35; 'so,': 0.37; 'thank': 0.38; 'work?': 0.38; 'little': 0.38; 'most': 0.60; 'you.': 0.62; 'information': 0.63; 'received:194': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'notice:': 0.67; 'natural': 0.68; 'person,': 0.68; 'privileged.': 0.69; 'disclose': 0.74; 'bundling': 0.84; 'env': 0.84; 'off,': 0.84; 'medium.': 0.91 |
| X-IronPort-AV | E=Sophos;i="5.07,539,1413237600"; d="scan'208";a="3701690" |
| Date | Mon, 8 Dec 2014 16:56:51 +0100 (CET) |
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| To | sam pendleton <samp4040@gmail.com> |
| In-Reply-To | <CAPti5iPBG_YiG-ZUu_ZQD8qdg91Oq_6CXoJ-9t9vRFwtNYL4rA@mail.gmail.com> |
| Subject | Re: module import questions and question about pytest and module imports |
| MIME-Version | 1.0 |
| X-Mailer | Zimbra 7.2.7_GA_2942 (ZimbraWebClient - GC39 (Win)/7.2.7_GA_2942) |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| Cc | python-list@python.org |
| 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.16724.1418054214.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1418054214 news.xs4all.nl 2956 [2001:888:2000:d::a6]:41209 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82124 |
Show key headers only | View raw
----- Original Message ----- > From: "sam pendleton" <samp4040@gmail.com> > Having to put the garage package on the sys.path seems a little off, > why wouldn't relative imports work? > > Do most people somehow put their packages in sys.path when bundling > their python packages up to be shared with setuptools or other python > package managers? If so, how? If it feels more natural to you, you can also update the env variable PYTHONPATH and add the path to your dev package. That way you don't need to add python code. But if you plan to distribute your package with setuptools, the solution would probably be to install your package before testing it (and probably use virtualenv). JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: module import questions and question about pytest and module imports Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-12-08 16:56 +0100
csiph-web