Installing package as root to a system directory

2023-09-28 Thread Loris Bennett via Python-list
Hi, I use poetry to develop system software packages as a normal user. To install the packages I use, again as a normal user export PYTHONUSERBASE=/some/path pip3 install --user somepackage.whl and add /some/path to /usr/lib64/python3.6/site-packages/zedat.pth This works well enough,

[issue229841] 'make install' needs write access to build directory

2022-04-10 Thread admin
Change by admin : -- github: None -> 33789 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue214245] utime can not accept directory under NT

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue482531] python directory not added to PATH

2022-04-10 Thread admin
Change by admin : -- github: None -> 35536 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue480480] pydoc #!/build-directory/python

2022-04-10 Thread admin
Change by admin : -- github: None -> 35503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue217028] Installation fails if prefix directory does not exist.

2022-04-10 Thread admin
Change by admin : -- github: None -> 33355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue450265] OS/2 + EMX port - PC directory files

2022-04-10 Thread admin
Change by admin : -- github: None -> 34949 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue421878] File in a directory with a special chara

2022-04-10 Thread admin
Change by admin : -- github: None -> 34462 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue229280] Weird build directory on BSDI

2022-04-10 Thread admin
Change by admin : -- github: None -> 33752 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue403313] Include build directory when running "make test"

2022-04-10 Thread admin
Change by admin : -- github: None -> 33750 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue403222] Remove case insensitive problem with "Python" directory

2022-04-10 Thread admin
Change by admin : -- github: None -> 33705 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue217028] Installation fails if prefix directory does not exist.

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue224003] sys.path[0] is not the script directory

2022-04-10 Thread admin
Change by admin : -- github: None -> 33528 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue215528] import creates extra modules if in working directory

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210636] prefix directory (PR#293)

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400788] Fix os.path.commonprefix to work by directory components

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400533] Distutils directory cache bug fix

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue224003] sys.path[0] is not the script directory

2022-04-10 Thread admin
Change by admin : -- github: None -> 33528 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue215528] import creates extra modules if in working directory

2022-04-10 Thread admin
Change by admin : -- github: None -> 33220 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue214245] utime can not accept directory under NT

2022-04-10 Thread admin
Change by admin : -- github: None -> 33089 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210636] prefix directory (PR#293)

2022-04-10 Thread admin
Change by admin : -- github: None -> 32707 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400788] Fix os.path.commonprefix to work by directory components

2022-04-10 Thread admin
Change by admin : -- github: None -> 32556 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400533] Distutils directory cache bug fix

2022-04-10 Thread admin
Change by admin : -- github: None -> 32450 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread Ethan Furman
Ethan Furman added the comment: Nosied others from issue21987. -- nosy: +andrei.avk, ethan.furman, r.david.murray, vstinner ___ Python tracker ___

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread Chris Fernald
ays fail. A simple example of this is as follows using 3.10.4. 1. Download: https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz 2. place attached python script in same directory 3. run on 3.8.2 -> fails to get st

[issue29067] Source archive: wrong directory attributes

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: In 3.11 it is drwxr-xr-x. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue13011] Frozen programs require the original build directory in order to run.

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: Closing, please reopen or create a new issue if this is still a problem after all these years. -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker

[issue42782] shutil.move creates a new directory even on failure

2022-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset e808c9d5c78e5a7a9d804eced013a02c0c7df1a5 by Jelle Zijlstra in branch '3.9': [3.9] bpo-42782: fix broken shutil test (GH-31971) https://github.com/python/cpython/commit/e808c9d5c78e5a7a9d804eced013a02c0c7df1a5 --

[issue42782] shutil.move creates a new directory even on failure

2022-03-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +JelleZijlstra nosy_count: 3.0 -> 4.0 pull_requests: +30061 pull_request: https://github.com/python/cpython/pull/31971 ___ Python tracker

[issue45149] Cover directory and zipfile execution in __main__ module docs

2022-03-11 Thread Petr Viktorin
Change by Petr Viktorin : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks again! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-14 Thread Mariatta
Mariatta added the comment: New changeset b27195332e91e932501f16cf9877761b218a9c99 by Miss Islington (bot) in branch '3.10': bpo-46436: Fix command-line option -d/--directory in module http.server (GH-30701) https://github.com/python/cpython/commit/b27195332e91e932501f16cf9877761b218a9c99

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-14 Thread Mariatta
Mariatta added the comment: New changeset 502ad3930ee8fcf76026edfc06a33621363cebea by Miss Islington (bot) in branch '3.9': bpo-46436: Fix command-line option -d/--directory in module http.server (GH-30701) https://github.com/python/cpython/commit/502ad3930ee8fcf76026edfc06a33621363cebea

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29286 pull_request: https://github.com/python/cpython/pull/31103 ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +29285 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31102 ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 2d080347d74078a55c47715d232d1ab8dc8cd603 by Géry Ogam in branch 'main': bpo-46436: Fix command-line option -d/--directory in module http.server (GH-30701) https://github.com/python/cpython/commit/2d080347d74078a55c47715d232d1ab8dc8cd603

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 2e9f77f9d4fc282666ff85051b6e7ade0eed1d4c by Miss Islington (bot) in branch '3.9': [3.9] bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) (GH-31048)

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 1dcd77280410e4b3bd7b0680f00a38cea466ebd1 by Miss Islington (bot) in branch '3.10': bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) https://github.com/python/cpython/commit/1dcd77280410e4b3bd7b0680f00a38cea466ebd1 --

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29229 pull_request: https://github.com/python/cpython/pull/31048 ___ Python tracker ___

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +29228 pull_request: https://github.com/python/cpython/pull/31047 ___ Python tracker

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-02-01 Thread Irit Katriel
Irit Katriel added the comment: New changeset 108e66b6d23efd0fc2966163ead9434b328c5f17 by Irit Katriel in branch 'main': bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) https://github.com/python/cpython/commit/108e66b6d23efd0fc2966163ead9434b328c5f17 --

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-01-29 Thread Irit Katriel
Irit Katriel added the comment: test_embed does not fail anymore. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-01-29 Thread Irit Katriel
Change by Irit Katriel : -- type: compile error -> behavior versions: +Python 3.10, Python 3.11 -Python 3.8 ___ Python tracker ___

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2022-01-29 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 4.0 -> 5.0 pull_requests: +29193 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31014 ___ Python tracker

[issue11831] "pydoc -w" causes "no Python documentation found" error when the path is not current directory

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: Closed Issue31305 as a duplicate of this. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2 ___ Python tracker

[issue13011] Frozen programs require the original build directory in order to run.

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: This seems very outdated, can we close it? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-23 Thread Géry
`), not a partial object `partial(SimpleHTTPRequestHandler, directory=args.directory)` or `partial(CGIHTTPRequestHandler, directory=args.directory)`, so that the assignment of `protocol_version` class attribute in test is not ignored. The partial object in the `if __name__ == '__main__'` branch

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5 ___ Python tracker

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 94d6434ba7ec3e4b154e515c5583b0b665ab0b09 by Miss Islington (bot) in branch '3.9': [3.9] bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) (GH-30738)

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-22 Thread Éric Araujo
Éric Araujo added the comment: The use of partial may cause bugs! Here is reported that the `protocol` parameter (of the `test` function) is ignored because it’s set on the partial object instead of the handler class: https://bugs.python.org/issue46285 -- nosy: +eric.araujo

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset 1d11fdd3eeff77ba600278433b7ab0ce4d2a7f3b by Miss Islington (bot) in branch '3.10': bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) https://github.com/python/cpython/commit/1d11fdd3eeff77ba600278433b7ab0ce4d2a7f3b

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +28924 pull_request: https://github.com/python/cpython/pull/30737 ___ Python tracker

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +28925 pull_request: https://github.com/python/cpython/pull/30738 ___ Python tracker ___

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cfadcc31ea84617b1c73022ce54d4ae831333e8d by andrei kulakov in branch 'main': bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) https://github.com/python/cpython/commit/cfadcc31ea84617b1c73022ce54d4ae831333e8d

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-20 Thread Géry
Change by Géry : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-19 Thread Géry
Change by Géry : -- nosy: -docs@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-19 Thread Géry
New submission from Géry : The API of [`http.server`](https://docs.python.org/3/library/http.server.html) supports the `directory` optional parameter for `CGIHTTPRequestHandler` (which is inherited from `SimpleHTTPRequestHandler`). The CLI of `http.server` supports the corresponding `-d

[issue39986] test_os / test_listdir failed as root-directory changed during test

2022-01-15 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue46326] 'venv --clear' should prompt user before nuking entire directory

2022-01-13 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46326] 'venv --clear' should prompt user before nuking entire directory

2022-01-11 Thread Ali Mohammad Pur
Change by Ali Mohammad Pur : -- title: 'virtualenv --clear' should prompt user before nuking entire directory -> 'venv --clear' should prompt user before nuking entire directory ___ Python tracker <https://bugs.python.org/issu

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-11 Thread Ali Mohammad Pur
Ali Mohammad Pur added the comment: > If similar behavior is also an issue with the Python standard library venv > module (which is a derivative of virtualenv), please update this issue > accordingly Yes, my bad, I should have mentioned that this applies to venv, I will update the issue

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Eryk Sun
Eryk Sun added the comment: The implementation of `--clear` in virtualenv apparently was changed to align with venv. On the linked virtualenv issue, Bernát Gábor suggested creating a bpo issue for venv to determine how the issue should be resolved for virtualenv. -- nosy:

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Ned Deily
Ned Deily added the comment: > Ned, the CLI of venv has a `--clear` option, which invokes EnvBuilder [1] > with clear=True. Thanks, I saw that. However, the issue as written does not mention venv at all, only virtualenv. I wanted the OP to verify that it does apply to venv and, if the

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Eryk Sun
Eryk Sun added the comment: Ned, the CLI of venv has a `--clear` option, which invokes EnvBuilder [1] with clear=True. It's implemented by EnvBuilder.clear_directory(). Ali wants this method to prompt for confirmation before deleting the directory contents and also proposes the addition

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Ned Deily
Ned Deily added the comment: It appears you are describing behavior in the third-party virtualenv project; if so, you should report the problem to that project (https://pypi.org/project/virtualenv/). If similar behavior is also an issue with the Python standard library venv module (which is

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Ali Mohammad Pur
New submission from Ali Mohammad Pur : `virtualenv --clear` is extremely eager to delete the passed directory without any sort of confirmation, leading to possible data-loss (e.g. with a mistyped command, or a misunderstanding of what it actually does). Simply deleting an entire directory tree

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2021-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, the tar command strips trailing slashes (even from file paths), so it is reasonable to do this in getmember(). $ mkdir dir $ touch dir/file $ tar cf archive.tar dir $ tar tf archive.tar dir dir/ dir/file $ tar tf archive.tar dir/ dir/ dir/file $ tar

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2021-12-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: The original issue was twofold: 1. below 100 char not working with trailing slash 2. over 100 char not working WITHOUT trailing slash The second part is no longer an issue -- tested in 3.9 and 3.11 on MacOS. Currently the issue is that a trailing slash now

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2021-12-28 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +28497 pull_request: https://github.com/python/cpython/pull/30283 ___ Python tracker ___

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: New changeset 7778116c2f573edf320bd55301137a968e4339d8 by Steve Dower in branch 'main': bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992) https://github.com/python/cpython/commit/7778116c2f573edf320bd55301137a968e4339d8 --

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28215 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29992 ___ Python tracker

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: +RM -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
New submission from Steve Dower : Before, a venv would include the DLLs directory in sys.path. Since issue45582, it does not, and so anything that relies on a standard library native module cannot run. -- assignee: steve.dower components: Windows messages: 408033 nosy: paul.moore

[issue17780] the test suite should use a TEMPDIR in the build directory, not the source directory

2021-12-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> TEST_DATA_DIR for out-of-tree builds ___ Python tracker ___

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-12-06 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +28165 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29940 ___ Python tracker ___

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree with Andrei. I'll test this approach on Windows. -- ___ Python tracker ___ ___

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-11-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: My last comment was wrong, the issue I linked is unrelated. I think the actual issue here is the code here: https://github.com/python/cpython/blob/4b97d974ecca9cce532be55410fe851eb9fdcf21/Lib/tempfile.py#L826 If `path` is a file that causes a permission

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Greg Ewing
On 13/11/21 7:23 pm, Abdur-Rahmaan Janhangeer wrote: os.getcwd is giving the path of site-packages and not the directory from which the command is run from. Something must be changing the working directory before getcwd is called. Once that happens there's no way I know of to find out what

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Abdur-Rahmaan Janhangeer
Greetings, This is what I am trying to do: How to get the getcwd of the directory of where the command is run and not that of the file where the cli entrypoint is found. Having the user enter the absolute path as a cli argument does not sound nice. Kind Regards, Abdur-Rahmaan Janhangeer about

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Barry
> On 13 Nov 2021, at 06:26, Abdur-Rahmaan Janhangeer > wrote: > > Only thing is that os.getcwd is giving the path of site-packages and not > the directory from > which the command is run from. In which case the code is doing a os.chdir() before the call to os.getwd(). You

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
using shopyo new, it creates a copy of the project in the current folder then on running say shopyo run, it just passes commandline args flask run under the hood Only thing is that os.getcwd is giving the path of site-packages and not the directory from which the command is run from. See the run com

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Greg Ewing
On 13/11/21 10:51 am, Abdur-Rahmaan Janhangeer wrote: ow do i get the path from which miaw the command is called from? What exactly do you mean by "called from"? If you want the user's working directory, os.getcwd() will give you that. If you want something else, you'll have to gi

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread dn via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used, it p

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread David L Neil via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used, it p

Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
Greetings list, Let's say i created a package named miaw miaw also has a cli command called miaw miaw prints files and folders in the directory it is called in except that when miaw is used, it prints the files and folders in site-packages This is an analogy for a package i have. Well

[issue45788] sys.prefix include directory on Windows

2021-11-11 Thread Catherine Holloway
New submission from Catherine Holloway : On the page: https://docs.python.org/3.10/library/sys.html#sys.prefix the text says The main collection of Python library modules is installed in the directory prefix/lib/pythonX.Y while the platform independent header files (all except pyconfig.h

[issue18083] _sysconfigdata.py is installed in an arch-independent directory

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET) ___ Python tracker <https://bugs.python

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

2021-10-19 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2021-10-18 Thread Steve Dower
Steve Dower added the comment: Affects distutils, which is deprecated and won't be getting any more fixes. I've migrated it to https://github.com/pypa/distutils/issues/63 -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue43264] ListProxy with EventProxy in caused FileNotFoundError: [Errno 2] No such file or directory problem

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Changing type as crash typically refers to segfault or hang and not exception. -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker

[issue45517] TarFile.add skips files when tarfile name matches a directory

2021-10-18 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45517] TarFile.add skips files when tarfile name matches a directory

2021-10-18 Thread Jesse Kinkead
rising behavior when the name matches an existing directory. Specifically, when you provide a "fileobj" for writing and provide a "name" that matches an existing directory, calling .add() on that directory will have it (and any child files) to be silently skipped. The desired behav

Is the bug reported to python Recently i upgraded my python version and its directory But when i try to download pyqt5 it gives out a holy error Do i have to install py 3.9 again pls help me take a lo

2021-10-17 Thread Umme Salma
-- https://mail.python.org/mailman/listinfo/python-list

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e0b61b28641bdd20cfeff6d9878f1318b711ca19 by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e0b61b28641bdd20cfeff6d9878f1318b711ca19 by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   3   4   5   6   7   8   9   10   >