ppa-dev-tools creates __pycache__/sitecustomize.cpython-310.pyc if sitecustomize.py exists in current directory
Bug #2068011 reported by
Adrien Nader
This bug report will be marked for expiration in 15 days if no further activity occurs. (find out why)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppa-dev-tools |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hi,
If a "sitecustomize.py" file is present in the current directory, running ppa-dev-tools will create __pycache_
I am using the snap:
ppa-dev-tools 0.6.0 74 latest/edge bryce-harrington -
I cannot tell if other files trigger similar behaviour as I was not able to strace without affecting the process, maybe as I had to run it as root (strace would show nothing related to sitecustomize).
summary: |
ppa-dev-tools creates __pycache__/sitecustomize.cpython-310.pyc if - sitecustomize.py exists + sitecustomize.py exists in current directory |
To post a comment you must log in.
Hi Adrien,
That does sound annoying, however I'm not sure how to reproduce it. I tried:
stirling: /tmp$ mkdir lp2068011 /launchpad. net/+authorize- token?oauth_ token=Rs4jdBN3h Cgv0GDrVQwD& allow_permissio n=DESKTOP_ INTEGRATION)
stirling: /tmp$ cd lp2068011/
stirling: /tmp/lp2068011$ touch sitecustomize.py
stirling: /tmp/lp2068011$ sudo snap install ppa-dev-tools
[sudo] password for bryce:
ppa-dev-tools 0.5.0 from Bryce Harrington installed
stirling: /tmp/lp2068011$ /snap/bin/ppa create lp2068011-test
The authorization page:
(https:/
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
PPA 'lp2068011-test' created for the following architectures:
i386, amd64, armhf, ppc64el, s390x, arm64, powerpc
The PPA can be viewed at:
https:/ /launchpad. net/~bryce/ +archive/ ubuntu/ lp2068011- test
You can upload packages to this PPA using:
dput ppa:bryce/ lp2068011- test <source.changes>
Wait for the uploads to build and publish using:
ppa wait ppa:bryce/ lp2068011- test
To add the repository and to your system:
sudo add-apt-repository -yus {the_ppa.address}
sudo apt-get install <package(s)>
stirling: /tmp/lp2068011$
Offhand, it's not obvious what in ppa-dev-tools would trigger that kind of behavior. Can you try reproducing it some different ways to see if you can narrow down where the error is coming in?