[python-win32] Using pip to install pywin32
Preston Landers
planders at gmail.com
Fri Feb 20 17:31:14 CET 2015
> I don't think pip can run this script (it even needs admin privs!).
Is there a reason it couldn't run a script that presents a UAC prompt to
elevate the process?
Something like this:
https://gist.github.com/Preston-Landers/267391562bc96959eb41
I guess for unattended installs you could just elevate the process
beforehand.
-Preston
On Fri, Feb 20, 2015 at 9:24 AM, Thomas Heller <theller at ctypes.org> wrote:
> Am 20.02.2015 um 15:07 schrieb Vernon D. Cole:
>
>> Pywin32 is mostly written in C, and has lots of dependencies and weird
>> build requirements. In order to compile it, you must have the same C
>> compiler that your release of Python was built with. For older Python
>> versions (like 2.7) that compiler is obsolete and hard to find, so
>> installs from source are pretty nearly impossible.
>>
>> Would a binary wheel be able to do all of the crazy set up that the
>> Windows installer does?
>>
>
> AFAIK, wheel do not support post_install scripts.
>
> According to the comments in Scripts\pywin32_postinstall.py, it does:
>
> # copies PyWinTypesxx.dll and PythonCOMxx.dll into the system directory,
> # and creates a pth file
>
> According to the code, it does a lot more...
>
> I don't think pip can run this script (it even needs admin privs!).
>
> Thomas
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20150220/3fabc2cf/attachment.html>
More information about the python-win32
mailing list