[python-win32] Separate smaller wheels?

2020-05-24 Thread Markus Kramer
Greetings,
maybe the current, single pywin32 wheel could be separated into smaller
ones, e.g.: com, comext, isapi, win32, Pythonwin,... (or others)
The “contains all” wheel should remain.

I believe pypiwin32 (the predecessor to pywin32?) offered smaller wheels.
The current setup.py is a large text, I think smaller texts are better to
read and maintain.

The removal of Python2 in setup.py could be followed by a refactoring into
smaller pieces.
What do you think?

Best regards,
Markus
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] python-win32 Digest, Vol 205, Issue 5

2020-05-24 Thread Markus Kramer
Hello Tim,

thank you for asking

> What is the point?  Installing a package does not mean you are required
to use all of it.


The points are:
- Reduce vulnerability. The MFC library is large and (earlier? versions)
contained CVE's.
- Reduce maintenance cost. By shipping less, you need to observe less, and
patch less.
- Reduce resources. Less size mean less disk space and less network
bandwidth.

Then you wrote

> If you ship a package that doesn’t need the UI components, then your
package will not include the components.


This is my goal.
I don't get what you refer to with "package".
Currently, `pip install pywin32` will include the UI components, even if
they are not needed.


Best regards,
Markus

On Sun, May 24, 2020 at 6:00 PM  wrote:

> Send python-win32 mailing list submissions to
> python-win32@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.python.org/mailman/listinfo/python-win32
> or, via email, send a message with subject or body 'help' to
> python-win32-requ...@python.org
>
> You can reach the person managing the list at
> python-win32-ow...@python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of python-win32 digest..."
> Today's Topics:
>
>1. Re: How to install pywin32 for Text only/TTY, excluding all
>   GUI components (Markus Kramer)
>2. help about embed PDF in MS Word (Mart?n Trujillo Raddatz)
>3. Re: How to install pywin32 for Text only/TTY, excluding all
>   GUI components (Tim Roberts)
>
>
>
> -- Forwarded message --
> From: Markus Kramer 
> To: python-win32@python.org
> Cc:
> Bcc:
> Date: Sat, 23 May 2020 13:27:52 +0200
> Subject: Re: [python-win32] How to install pywin32 for Text only/TTY,
> excluding all GUI components
> Hello,
> I would like to discuss and contribute to an alternative pip package
> without GUI:
> - pip install pywin32   continues as is, e.g. includes Pythonwin.
> - pip install pywin32nogui  would contain no GUI components, e.g. MFC.dll.
> What are your thoughts?
>
> As far as I can see, this would require changes in setup.py.
> I am aware that dropping Python2 support will also change setup.py.
>
> Best regards,
> Markus
> Thank you for merging https://github.com/mhammond/pywin32/pull/1490
>
>
> On Thu, Mar 19, 2020 at 12:29 AM Markus Kramer <
> markuskramerig...@gmail.com> wrote:
>
>> Hello,
>> SaltStack is a text based, non-GUI Python application that uses pywin32.
>> The GUI related parts of pywin32 are of no use, but increase the size.
>>
>> Can one install/compile pywin32 so, that only the test-based components
>> are installed?
>>
>> I cannot find back an old discussion regarding this question.
>>
>> Thank you,
>> Markus
>>
>
>
>
> -- Forwarded message --
> From: "Martín Trujillo Raddatz" 
> To: python-win32@python.org
> Cc:
> Bcc:
> Date: Sat, 23 May 2020 13:16:45 -0400
> Subject: [python-win32] help about embed PDF in MS Word
> HI! im new at programming in python, but very old in programming in
> general...
> i have a request to extract 1 or more embed pdf files in a huge amount of
> ms word files.
>
> i have tried in many ways, but it seems than pywin32 is the easy one, but
> I can't get the entire solution can any one help me with clues or hints in
> how to do it?
>
> Thank you in advance.
>
>
> **
>
>
> *Martín Trujillo Raddatz Puerto Montt - ChileTeléfono:
> +59 9 96427814 *
> **
>
>
>
> -- Forwarded message --
> From: Tim Roberts 
> To: Python-Win32 List 
> Cc:
> Bcc:
> Date: Sat, 23 May 2020 23:28:10 -0700
> Subject: Re: [python-win32] How to install pywin32 for Text only/TTY,
> excluding all GUI components
> On May 23, 2020, at 4:27 AM, Markus Kramer 
> wrote:
>
>
> Hello,
> I would like to discuss and contribute to an alternative pip package
> without GUI:
> - pip install pywin32   continues as is, e.g. includes Pythonwin.
> - pip install pywin32nogui  would contain no GUI components, e.g. MFC.dll.
> What are your thoughts?
>
>
> What is the point?  Installing a package does not mean you are required to
> use all of it.  If you ship a package that doesn’t need the UI components,
> then your package will not include the components.
> —
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
> ___
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] How to install pywin32 for Text only/TTY, excluding all GUI components

2020-05-24 Thread Markus Kramer
Greetings,
I opened pull request 1530 
with a proposal

Best Regards,
Markus



On Sat, May 23, 2020 at 1:27 PM Markus Kramer 
wrote:

> Hello,
> I would like to discuss and contribute to an alternative pip package
> without GUI:
> - pip install pywin32   continues as is, e.g. includes Pythonwin.
> - pip install pywin32nogui  would contain no GUI components, e.g. MFC.dll.
> What are your thoughts?
>
> As far as I can see, this would require changes in setup.py.
> I am aware that dropping Python2 support will also change setup.py.
>
> Best regards,
> Markus
> Thank you for merging https://github.com/mhammond/pywin32/pull/1490
>
>
> On Thu, Mar 19, 2020 at 12:29 AM Markus Kramer <
> markuskramerig...@gmail.com> wrote:
>
>> Hello,
>> SaltStack is a text based, non-GUI Python application that uses pywin32.
>> The GUI related parts of pywin32 are of no use, but increase the size.
>>
>> Can one install/compile pywin32 so, that only the test-based components
>> are installed?
>>
>> I cannot find back an old discussion regarding this question.
>>
>> Thank you,
>> Markus
>>
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] How to install pywin32 for Text only/TTY, excluding all GUI components

2020-05-24 Thread Tim Roberts
On May 23, 2020, at 4:27 AM, Markus Kramer  wrote:
> 
> Hello,
> I would like to discuss and contribute to an alternative pip package without 
> GUI: 
> - pip install pywin32   continues as is, e.g. includes Pythonwin.
> - pip install pywin32nogui  would contain no GUI components, e.g. MFC.dll.
> What are your thoughts?

What is the point?  Installing a package does not mean you are required to use 
all of it.  If you ship a package that doesn’t need the UI components, then 
your package will not include the components.
— 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32