public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Henderson <djndnbvg@gmail.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Getting Python on Windows points USER_HOME
Date: Tue, 21 Jan 2020 09:34:00 -0000	[thread overview]
Message-ID: <CAJ1FpuPMy=4-LxCMB5UE-FDb8ExX45z=yCqC85ARzJJzxBshSA@mail.gmail.com> (raw)
In-Reply-To: <SN6PR08MB40147D5AA5956B0DD858914FB70D0@SN6PR08MB4014.namprd08.prod.outlook.com>

On Mon, 20 Jan 2020 at 17:08, R Steiger <> wrote:
>
> Having installed the latest Cygwin-built Python distro (3.8.1), it thinks user-site is C:\Users\<myName>\AppData\Roaming ...

The latest python3 available via cygwin setup on 2020-01-21 is

$ python3.8 -V
Python 3.8.0b4

$ ls -l /usr/bin/python*.exe
-rwxr-xr-x 1 Admin None 9.1K Mar 20  2019 /usr/bin/python2.7.exe*
-rwxr-xr-x 1 Admin None 9.6K Jul 21  2019 /usr/bin/python3.5m.exe*
-rwxr-xr-x 1 Admin None 9.6K Jul 21  2019 /usr/bin/python3.6m.exe*
-rwxr-xr-x 1 Admin None 9.1K Jul 21  2019 /usr/bin/python3.7m.exe*
-rwxr-xr-x 1 Admin None 9.1K Sep 15 13:58 /usr/bin/python3.8.exe*

If you are running 3.8.1, as of today, you must have built it
yourself, or you are running the windows version of python. You can
check this by executing

$ which python3.8
/usr/bin/python3.8

If your python is in a directory outside the /usr/bin tree, you are
not running the cygwin version of python.

When running cygwin, my path looks like this:

$ echo $PATH
/home/Doug/bin:/home/Doug/local/bin:/usr/local/bin:/usr/bin:/usr/lib/lapack:/bin

If you have any windows folders in your path, they should (must)
follow these folders.

I set CYGWIN_NOWINPATH=1 in my system environment variables, and then
append only those windows folders that I need to run specific windows
apps.

> I've munged Lib/site.py and sysconfig.py to set base = "~" when os.name == "nt", but this doesn't do the trick.  What am I missing?

These are not necessary, and may have damaged your python 3.8.1 for
windows install. I suggest you undo these changes, or better yet
reinstall python 3.8.1 for windows.

HTH,
Doug
-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      parent reply	other threads:[~2020-01-21  9:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21  0:08 R Steiger
2020-01-21  3:33 ` Marco Atzeri
2020-01-21  5:47   ` R Steiger
2020-01-21  6:31     ` Marco Atzeri
2020-01-21  6:52       ` Update to "Reporting Guidelines" on the cygwin site David Finnie
2020-01-21  9:03         ` Doug Henderson
2020-01-21  9:34 ` Doug Henderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ1FpuPMy=4-LxCMB5UE-FDb8ExX45z=yCqC85ARzJJzxBshSA@mail.gmail.com' \
    --to=djndnbvg@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).