Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'sys': 0.05; 'python': 0.09; 'received:mail-vb0-f46.google.com': 0.09; 'cc:addr:python-list': 0.10; 'aug': 0.13; '3)]': 0.16; 'build.': 0.16; 'gentle': 0.16; 'path:': 0.16; "skip:' 60": 0.16; 'sys.path': 0.16; 'wrote:': 0.17; 'hacking': 0.17; '>>>': 0.18; 'received:209.85.212.46': 0.18; 'versions': 0.20; 'import': 0.21; 'install,': 0.22; 'cc:2**0': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'compiled': 0.27; 'installing': 0.27; 'message- id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'skip:( 20': 0.28; "skip:' 50": 0.29; "skip:' 70": 0.29; "i'm": 0.29; 'install': 0.29; 'framework': 0.30; 'builds': 0.33; 'wishes,': 0.33; 'recommended': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'path': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'should': 0.36; '(for': 0.37; 'previous': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'build': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'more': 0.63; '26,': 0.65; 'article': 0.78; '4.2.1': 0.84; 'cole': 0.84; "skip:' 80": 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o+CKmyHQ0D1g9OUOw3VhHfPzYJ8xAOh/6gvW0vwyGMQ=; b=YuEWCPhbRKsZbF4kDmsXrMh2seLB0PVeK7fnRMH6iAYRsYLD6ii5nUgt23hZ3cwoTq lSTHv3fK29puTdeSOlT2s+q5Tq9k6m/Fu358n3m/fi84hJH7draOmO6seFFsMoECudXL KbkqxlTuhZQpCjDr8a7UVAiA7iscx7nwA3gp/k0LTTv/XA4H2yUEJXDLDaXbqx0niSFL XOaT8fqzsE1es0FlGON4DCqlNYf1WuZtE2heHz0Xi2/5Ig3tJ9jAK8DRmFkT/iTO3p8I kTrm/tn9XR1rzi+gSed2Xlazu0fVS2taokPg5FMWWfdijlRvMf7PrLXJrAUrf52qJWBH nZRA== MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 26 Aug 2012 20:57:53 +0100 Subject: Re: sys.path in python3.3 From: Nicholas Cole To: Ned Deily Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346011076 news.xs4all.nl 6878 [2001:888:2000:d::a6]:46084 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27944 On Sun, Aug 26, 2012 at 8:21 PM, Ned Deily wrote: > In article > , > Nicholas Cole wrote: >> In all previous versions of python, I've been able to install packages >> into the path: >> >> ~/Library/Python/$py_version_short/site-packages >> >> but in the rc builds of python 3.3 this is no longer part of sys.path. >> >> Before I go hacking the install, is there a reason that this path was >> removed? Is there a recommended way to get it back, or is this a >> gentle way of pushing us all to use virtualenv rather than installing >> user-specific packages? > > It should be working if you are using an OS X framework build. What is > the value of sys.path? I'm using the compiled version supplied by python.org. Python 3.3.0rc1 (v3.3.0rc1:8bb5c7bc46ba, Aug 25 2012, 10:09:29) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python33.zip', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/plat-darwin', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages'] >>> This contrasts with (for python3.1) Python 3.1.1 (r311:74543, Aug 24 2009, 18:44:04) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/Library/Frameworks/Python.framework/Versions/3.1/lib/python31.zip', '/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1', '/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/plat-darwin', '/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages', '/Users/nicholas/Library/Python/3.1/site-packages'] Best wishes, Nicholas