RE: Windows installer from python source code without access to source code

2023-04-09 Thread Jim Schwartz
Thanks everyone for the help.  I got my app working with using cython to
generate the c code, cl to compile, and visual studio to create the
setup.exe and the msi installer.  I appreciate the help.

-Original Message-
From: Python-list  On
Behalf Of Jim Schwartz
Sent: Friday, April 7, 2023 7:28 AM
To: 'Eryk Sun' 
Cc: python-list@python.org
Subject: RE: Windows installer from python source code without access to
source code

Is this what you'd recommend doing when distributing a cython-generated code
compiled with cl.  I want to distribute this in a windows or other operating
system installer.  I'll start with windows first.  I don't think I can use
cx_freeze to create the installer, unless I know which files to include in
the package and list them.

https://stackoverflow.com/questions/62390978/minimal-set-of-files-required-t
o-distribute-an-embed-cython-compiled-code-and-ma


-Original Message-
From: Jim Schwartz 
Sent: Friday, April 7, 2023 5:33 AM
To: 'Eryk Sun' 
Cc: 'python-list@python.org' 
Subject: RE: Windows installer from python source code without access to
source code

Yea, thanks a lot.  That makes sense.  I was testing it on my development
environment and got it to work that way, but I need to package it and test
it on my dual boot "user" environment.  Thanks again for the help.  I've
deleted that environment variable.

-Original Message-
From: Eryk Sun 
Sent: Thursday, April 6, 2023 8:06 PM
To: Jim Schwartz 
Cc: python-list@python.org
Subject: Re: Windows installer from python source code without access to
source code

On 4/6/23, Jim Schwartz  wrote:
> Never mind.  I found it on the web.  I needed to point my PYTHONPATH 
> to
> sitepackages:

In most cases an application should be isolated from PYTHON* environment
variables. If you're creating a Python application or embedding Python in an
application, use the embeddable distribution, and add any additional
required sys.path directories to the included "._pth" file (e.g.
"python311._pth").

https://docs.python.org/3/library/sys_path_init.html#pth-files

--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Yogesh Tirthkar
Hi,

Is there any way I can uninstall python installed (as user) in someone else' 
account - without login as that user, but login as local admin ?

Regards,
Yogesh.
_
Technology Group | GIC Private Limited | 168 Robinson Road, #37-01, Capital 
Tower, Singapore 068912

-Original Message-
From: Python-list 
 On Behalf Of 
Thomas Passin
Sent: Wednesday, March 29, 2023 12:19 AM
To: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[[External Mail] Do not click on links or attachment from unknown senders.]


On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote:
> Hi Team,
>
> Could you please advise on the scenario in windows 10 machine : Where we need 
> to uninstall/remove python from user profile A (installed by user A in its 
> own profile folder) - via an admin user or system account.
>
> Currently when we try to uninstall it via admin/system account - it displays 
> that the python product is not installed for this user (admin/system).
>
> Appreciate your assistance.

It depends on where the Python installation is located, but I would just delete 
the entire folder tree at %APPDATA%\Python\Python3xxx.

If Python was installed for all users, its main set of files will probably be 
in "c:\Program Files" and Window's "Add or Remove" page should remove it.

If it was installed just for User A, then the "Add or Remove" page will find it 
if run from User A's account.  If for some reason User A will not or cannot 
cooperate, the admin could change User A's password and then run "Add or 
Remove".  Of course the admin would not be able to change the pw back, but if 
User A is not cooperating maybe that wouldn't matter.

--
https://mail.python.org/mailman/listinfo/python-list
This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Thomas Passin

On 4/9/2023 10:14 PM, Yogesh Tirthkar wrote:

Hi,

Is there any way I can uninstall python installed (as user) in someone else' 
account - without login as that user, but login as local admin ?


It depends on whether you can use that user's password. With the 
password, it's very feasible.  Without it, some people seem to have 
found ways.  There some discussion of this here -


https://serverfault.com/questions/773038/run-as-a-different-user-without-a-password-from-an-elevated-prompt-in-windows


Technology Group | GIC Private Limited | 168 Robinson Road, #37-01, Capital 
Tower, Singapore 068912

-Original Message-
From: Python-list 
 On Behalf Of 
Thomas Passin
Sent: Wednesday, March 29, 2023 12:19 AM
To: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[[External Mail] Do not click on links or attachment from unknown senders.]


On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote:

Hi Team,

Could you please advise on the scenario in windows 10 machine : Where we need 
to uninstall/remove python from user profile A (installed by user A in its own 
profile folder) - via an admin user or system account.

Currently when we try to uninstall it via admin/system account - it displays 
that the python product is not installed for this user (admin/system).

Appreciate your assistance.


It depends on where the Python installation is located, but I would just delete 
the entire folder tree at %APPDATA%\Python\Python3xxx.

If Python was installed for all users, its main set of files will probably be in "c:\Program 
Files" and Window's "Add or Remove" page should remove it.

If it was installed just for User A, then the "Add or Remove" page will find it if run 
from User A's account.  If for some reason User A will not or cannot cooperate, the admin could 
change User A's password and then run "Add or Remove".  Of course the admin would not be 
able to change the pw back, but if User A is not cooperating maybe that wouldn't matter.

--
https://mail.python.org/mailman/listinfo/python-list
This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.



--
https://mail.python.org/mailman/listinfo/python-list


RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Yogesh Tirthkar
Hello,

Thank you for your response.

May I know how to uninstall it from user A profile – if user A is no longer 
available.

Is there any means - where I can use local admin account to uninstall the app 
(installed in User A profile, without user A’s intervention)

Regards,
Yogesh.

From: Sravan Kumar Chitikesi 
Sent: Monday, April 10, 2023 2:17 PM
To: Yogesh Tirthkar 
Cc: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[cid:image001.png@01D96BB7.7B62F3D0]

If Python was installed by user A in their own profile folder, it is likely 
that it was installed just for that user. In this case, you may need to log in 
as user A to uninstall Python from their profile. Have you tried logging in as 
user A and uninstalling Python from there?

Regards,
Sravan Chitikesi
AWS Solutions Architect - Associate


On Tue, Mar 28, 2023 at 11:30 AM Yogesh Tirthkar 
mailto:yogeshtirthkar-ven...@gic.com.sg>> 
wrote:
Hi Team,

Could you please advise on the scenario in windows 10 machine : Where we need 
to uninstall/remove python from user profile A (installed by user A in its own 
profile folder) - via an admin user or system account.

Currently when we try to uninstall it via admin/system account - it displays 
that the python product is not installed for this user (admin/system).

Appreciate your assistance.


Regards,
Yogesh.
_
Technology Group | GIC Private Limited | 168 Robinson Road, #37-01, Capital 
Tower, Singapore 068912


This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.
--
https://mail.python.org/mailman/listinfo/python-list

This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.
-- 
https://mail.python.org/mailman/listinfo/python-list