Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Sivan Greenberg Newsgroups: comp.lang.python Subject: Re: Python's import situation has driven me to the brink of imsanity Date: Wed, 10 Feb 2016 21:05:49 +0200 Lines: 34 Message-ID: References: <51b52cf3-0b0a-451e-a232-d9a671f7cd20@googlegroups.com> <14095c33-b5d4-419f-aaf4-e6f293d0cbf9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de Tp47ZIu4yEomjisWtlh4MQ7bBC3TLCe6j4ZCyuaaJFcA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'distutils': 0.05; 'error:': 0.05; 'cto': 0.07; 'setup.py': 0.07; 'cc:addr:python-list': 0.09; '"in': 0.09; 'benjamin': 0.09; 'command.': 0.09; 'invocation': 0.09; 'python': 0.10; 'wed,': 0.15; 'importing': 0.15; '"in': 0.16; '2016': 0.16; 'cc:name:python list': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'setuptools': 0.16; 'setuptools"': 0.16; 'setuptools.': 0.16; 'subject:import': 0.16; 'wrote:': 0.16; '>': 0.18; 'email addr:gmail.com>': 0.18; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'cc:2**1': 0.22; 'am,': 0.23; 'feb': 0.23; 'import': 0.24; 'cc:addr:gmail.com': 0.24; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'install': 0.25; "doesn't": 0.26; 'command': 0.26; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.30; 'work.': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'recommended': 0.34; 'running': 0.34; 'gives': 0.35; 'received:google.com': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'founder': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'skip:& 10': 0.37; 'received:209': 0.38; 'does': 0.39; 'subject:the': 0.39; 'rather': 0.39; 'url:mail': 0.40; 'still': 0.40; 'your': 0.60; '&': 0.61; 'oscar': 0.84; 'pip': 0.84; 'presumably': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vitakka-co.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Cu9HTNr1zeisl2j+T0wORm1eRIl0A4L/9D3fHLj5XoQ=; b=vm+mJU67J3UzGHj7ZdkqohXdBctHanmNXx1U12YsXheQ76Q2/CCwqCGrzkdmExzC3X AKSUwOvqwDcWD3Z6kcKtppLV5UnDOiUa1K8DvptQsl18I4BOg+5xpWKuECEU51cMakHZ 6sqbdlMWJVv/tZ+s+RYXmcZ2BWcZPQ09M65/NYhcMrc3L47Ldnu+m2ZGP8ZUJx13KjIK RfHMC+njBwozffPxgUlmSknX2T1UzA7FZFPtY/VFlvrBLMA4ISf8b+b+APaZ6d7Z+b1N s52zghlywULGNzufOvwBHHVv2Ha6jZfg+gmDTS27jDzrHIxbaXVBgujlUAo+b+w0V5Vm hMSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Cu9HTNr1zeisl2j+T0wORm1eRIl0A4L/9D3fHLj5XoQ=; b=i7sMYfQwz0RmpZQu224xyEd13xCVq7pn9+mqZMp4VT1I2+jP1z8tNESAbGgNxgSyw7 Pd4lPWpz+5Ml5KdouxJhPobaS97HssKOaBWId41K8jAWsOJfPQxm2Wtd3wAqZCzYFsdS RCRglksNOhfHPasGJJffHJqffQCezzrLrRI3p4RSaFaKjdlUc1unrT6kY2O9v4ucBnva yyeZLTUPdToNmEcFlJoCFDaJnuQ1q54+7Jnudj701WKa8Ns+TLUj9HndFPdaOA3kVMkE DvdSOKCzELkv7jse0fsXSsGET8gHFtJjeN54HPuPz61L7G3lVlqo3KKOVClsN3jKdOib yO2Q== X-Gm-Message-State: AG10YOSLCEgTPYOrGtQrv1bwIPM+t6WN/dhSsVUQBOHdVZaqqB+A4LUKMsqM61ek7RVaz801t7pDfPo9+Ef2uw== X-Received: by 10.129.17.142 with SMTP id 136mr20941576ywr.109.1455131149922; Wed, 10 Feb 2016 11:05:49 -0800 (PST) X-Originating-IP: [84.109.37.98] In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.21rc2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102769 not entirely on-topic here, but is distutils still being in active use "in the wild" ? -Sivan On Wed, Feb 10, 2016 at 2:31 AM, Oscar Benjamin wrote: > On 8 February 2016 at 00:38, wrote: > > Running python setup.py develop doesn't work, it gives me this error: > error: invalid command 'develop' > > This is presumably because your setup.py script uses distutils rather > than setuptools: distutils doesn't have the develop command. > > > Running pip install -e . does work. > > That's because pip "injects setuptools" so that when you import > distutils in your setup.py your actually importing a monkey-patched > setuptools. You may as well import setuptools in your setup.py but > either way the recommended invocation is "pip install -e .". > > -- > Oscar > -- > https://mail.python.org/mailman/listinfo/python-list > -- Sivan Greenberg Co founder & CTO Vitakka Consulting