This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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``. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters