Compiling Python 2.7 installer on Windows
<p>I'm trying to compile Python 2.7 installer on Windows. The compilation works fine, but when I try to run </p>

<pre><code>PCbuild\python.exe setup.py bdist_wininst
</code></pre>

<p>I get an error:</p>

<pre><code>error: pyconfig.h: No such file or directory
</code></pre>

<p>How can I fix that?</p>

<p>Update:
I found a file called <code>Pyconfig.h.in</code> in the root directory. After renaimnig it to <code>Pyconfig.h</code> bdist fails with the following error:</p>

<pre><code>Traceback (most recent call last):
  File "setup.py", line 2076, in &lt;module&gt;
    main()
  File "setup.py", line 2071, in main
    'Lib/smtpd.py']
  File "Python-2.7.3\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "Python-2.7.3\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "Python-2.7.3\Python-2.7.3\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "Python-2.7.3\lib\distutils\command\bdist_wininst.py", line 131, in run
    self.run_command('build')
  File "Python-2.7.3\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "Python-2.7.3\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "Python-2.7.3\lib\distutils\command\build.py", line 127, in run
    self.run_command(cmd_name)
  File "Python-2.7.3\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "Python-2.7.3\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "Python-2.7.3\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "setup.py", line 152, in build_extensions
    missing = self.detect_modules()
  File "setup.py", line 1146, in detect_modules
    for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
AttributeError: 'NoneType' object has no attribute 'split'
</code></pre>

<p>Thanks in advance, Ivan.</p>
