Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update pymyinstall with pypiwin32
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 3, 2017
1 parent de719c9 commit 2ca1c40
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
32 changes: 32 additions & 0 deletions _doc/sphinxdoc/source/blog/2017/2017-01-03_pycrypto.rst
@@ -0,0 +1,32 @@

.. blogpost::
:title: Building pycrypto on Windows
:keywords: pycrypto, Windows
:date: 2017-01-03
:categories: module

New version of Python and the same issues come back
when I need to compile some specific packages such as pycrypto.
No big issue here. After getting the sources, the following
instructions might work:

::
python setup.py bdist_wheel
In my case, I got:

::
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(26): error C2061: syntax error: identifier 'intmax_t'
I finally decided to edit this file and to add just before the line
of the error (which I'll remove after):

::
#define intmax_t long long
#define uintmax_t unsigned long long
And I was able to build ``pycrypto-2.7a2-cp36-cp36m-win_amd64.whl``.

27 changes: 27 additions & 0 deletions _doc/sphinxdoc/source/blog/2017/2017-01-03_pypiwin32.rst
@@ -0,0 +1,27 @@

.. blogpost::
:title: Build pypiwin32 on Windows
:keywords: Windows, pywin32, pypiwin32
:date: 2017-01-03
:categories: module

The module `pypiwin32 <https://github.com/pywin32/pypiwin32>`_ does not seem to
be refreshed on `PyPi <https://pypi.python.org/pypi/pypiwin32/>`_.
To compile it, you need to get the sources from
`pypiwin32 <https://github.com/pywin32/pypiwin32>`_,
to install `Windows SDK <https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk>`_
if you did not already (not sure that is required but just in case).

Set up the environment variable ``MSSdk`` to the location
of the Microsoft SDK. In my case, it was:

::
set MSSdk=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A
Change ``from distutils.core import setup`` into
``from setuptools import setup`` to be able to build
a wheel.



2 changes: 1 addition & 1 deletion src/pymyinstall/packaged/packaged_config_1_small.py
Expand Up @@ -61,7 +61,7 @@ def small_set():
purpose="reads/writes Excel files, version is 1.8.6 due to pandas which does not work with more recent verrsions yet"),
ModuleInstall("xlrd", "pip", purpose="reads Excel files"),
ModuleInstall("xlwt", "pip", purpose="writes Excel files"),
ModuleInstall("pypiwin32", "pip",
ModuleInstall("pypiwin32", "wheel2",
mname="win32com", purpose="call Windows DLL",
usage="WINDOWS") if sys.platform.startswith("win") else None,
ModuleInstall("pywin32-ctypes", "pip", mname="win32ctypes",
Expand Down

0 comments on commit 2ca1c40

Please sign in to comment.