Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.python > #7728

Re: Python di sistema vs python di homebrew (Mac OS X)

Path csiph.com!news.fcku.it!bofh.it!tornado.fastwebnet.it!53ab2750!not-for-mail
Subject Re: Python di sistema vs python di homebrew (Mac OS X)
Newsgroups it.comp.lang.python
References <ppn9qo$150n$1@gioia.aioe.org>
From oggei <oggei@scimmia.net>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0
MIME-Version 1.0
In-Reply-To <ppn9qo$150n$1@gioia.aioe.org>
Content-Type text/plain; charset=iso-8859-15
Content-Language en-US
Content-Transfer-Encoding 8bit
Lines 20
Message-ID <I55yD.354$lb.109@tornado.fastwebnet.it> (permalink)
Date Thu, 18 Oct 2018 21:24:24 +0200
NNTP-Posting-Host 2.235.54.12
X-Complaints-To newsmaster@fastweb.it
X-Trace tornado.fastwebnet.it 1539890664 2.235.54.12 (Thu, 18 Oct 2018 21:24:24 CEST)
NNTP-Posting-Date Thu, 18 Oct 2018 21:24:24 CEST
Xref csiph.com it.comp.lang.python:7728

Show key headers only | View raw


Il 11/10/18 12:48, Pastrufazio ha scritto:
> Dove il primo è il python si sistema del Mac, mentre il secondo è quello
> che ho installato con homebrew. È corretto, oppure anche *python*
> dovrebbe puntare a */usr/local/bin/python3*?

e' in generale una pessima idea quella di cambiare il layout del sistema
in OSX, che shippa utility spesso diverse dalla distribuzione upstream e
che non sai come e quando potrebbero venire usate da cosa.

Considera che con gli strumenti tipo setuptools e similari gli script
con shebang verranno sempre riscritti per puntare al python con cui li
installi, quindi il problema di "che python usa X" in sostanza non si
porra'.

Se per comodita' vuoi che il tuo utente possa usare python come alias a
python3 puoi appunto impostare un alias o un symlink in local/bin e
cambiare l'ordine delle directory in $PATH.

aloha

Back to it.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

Python di sistema vs python di homebrew (Mac OS X) Pastrufazio <pastrufazio@gmail.com> - 2018-10-11 12:48 +0200
  Re: Python di sistema vs python di homebrew (Mac OS X) oggei <oggei@scimmia.net> - 2018-10-18 21:24 +0200

csiph-web