summaryrefslogtreecommitdiff
path: root/setuptools/msvc9_support.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename msvc9_support to simply msvc.Jason R. Coombs2016-07-021-1174/+0
|
* Some fixesJ. Goutin2016-06-141-15/+19
| | | | | - Fix issue #593 - Fix some forgotten "vcver" => "vc_ver" renames in previous commit. - Add comment on why I didn't followed PEP8 for some variables names.
* Use underscore to separate words (or acronyms) for clarity (vc_ver).Jason R. Coombs2016-05-221-60/+60
|
* Add missing C for consistency.Jason R. Coombs2016-05-221-2/+2
|
* Remove extra redundant work. Patch the module so behavior is the same on ↵Jason R. Coombs2016-05-221-5/+0
| | | | Unix systems even if not invoked. Tests still pass on Linux due to import protections.
* Update msvc9_support.pyJ. Goutin2016-05-191-13/+18
|
* Some fixesJ. Goutin2016-05-021-16/+17
| | | After testing VC Builds Tools 2015 with current = Amd64 and target = Amd64, x86, Arm
* Restore ability for msvc9_support to be imported on non-Windows platforms.Jason R. Coombs2016-05-021-4/+21
|
* useless 'r' before strJ. Goutin2016-04-291-1/+1
|
* Tests and fixesJ. Goutin2016-04-291-11/+29
| | | | | | | | | Tests advancement: I tested WinSDK 7.1, WinSDK 7.0, WinSDK 6.1, VC for Python 2.7 with current arch as X86 and all possible target architecture. Environment generated from script is good for all (With some little fixes in this commit), some path are add on some case, I will look if I need to remove them. I need also to check .Net Framework 64bit in this case. I need also to do test for sames compilers on X64 architecture, I will also test MSVC++ 2015 Build tools on X64. I looked for create automated test on AppVeyor for this, but it is impossible to only have one of theses compilers only installed... So I did all test manually.
* Fix six importJ. Goutin2016-04-221-3/+1
|
* Update msvc9_support.pyJ. Goutin2016-04-171-0/+1
|
* Feature/msvc discoveryJ. Goutin2016-04-171-62/+239
| | | | | | | | | | | | | | | | | It's finished !! Now, it fully support MSVC from 9.0 to 14.0, and all theses standalone distributions: - Microsoft Visual C++ Compiler for Python 2.7 (MSVC++9.0, x86, amd64) - Microsoft Windows SDK 6.1 (MSVC++9.0, x86, x64, ia64) - Microsoft Windows SDK 7.0 (MSVC++9.0, x86, x64, ia64) - Microsoft Windows SDK 7.1 (MSVC++10.0, x86, x64, ia64) - Microsoft Visual C++ Build Tools 2015 (MSVC++14.0, x86, x64, arm) Next step: - Code review. - Test it with some MSVC versions/Architectures/Python versions combinations. I have also some comments on the global implementation: - I think `msvc9_find_vcvarsall` can now be deleted. - Maybe rename the file, by example "msvc_support.py". - Maybe Implementing it (And other distutils patchs) for not be only called by "setuptools", but also by "pkg_resources": This will automatically activate patchs for some externals packages like "Cython" transparently.
* * Continue do add support for MSVC14 (Still work in progress).JGoutin2016-03-041-31/+119
| | | | | * Add support for MSVC11 and 12 (Only few changes with actual code needed for them). * Python 2 compatibility for winreg.
* * Move non registry parts from RegistryInfo to SystemInfo.JGoutin2016-03-031-266/+509
| | | | | | | * Rename many variable to use the same names as in MSVC .bat files. This really help to compare the Python script with original sources. * Split compute_env to EnvironmentInfo class. * Continue to add support for MSVC14. * Some more little fixes.
* First, thanks for the review. This is very instructive for me and the code ↵JGoutin2016-03-021-87/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | is clearer now. I tested your reviewed version, and it work (Tested only on Windows x86, Python 3.4, Windows SDK 7.1 actually). I did the following changes : * Add many docstrings, and improve existing ones. * Change some comments that was unclear. * Move .NET Framework directory/version finders in "RegistryInfo", like others. * Started to add support for the MSVC++14.0 standalone compiler. (Note that this is Work in progress). This also help me to find what fail in actual structure. * Add "msvc9_" prefix to actual patch functions and unpatched dict for better readability. * Add VCforPython27 alternative in _augment_exception for IA64 (Arch not supported by VCforPython27) * Replace "lib_extra" and "sdk_extra" by more generic "ccpu_dir" and "tcpu_dir" functions (For better compatibility with MSVC++14) * Changes some parts (like VSTools) for reduce line length, avoid repetitions and improve PEP8. * Make "unique_everseen" and "lookup" private. But, it is not finished, I need at least to do: - Finish MSVC++14 support. - Remove patch for "find_vcvarsall" for MSVC++9 ? (Now "query_vcvarsall" patch also support VC++ for Python 2.7) - Make more tests with more compilers/platforms/Python combination. - Check compatibility with MSVC++11 and 12. - Rename the file in "msvc_support.py" ? (not MSVC9 only) - Rename "RegistryInfo" ? - Make compute_env a class ? for split subparts like you did it for "RegistryInfo" and "PlatformInfo"
* I don't imagine message will ever resolve to FalseJason R. Coombs2016-02-231-1/+1
|
* Extract function for _augment_exception.Jason R. Coombs2016-02-231-6/+12
|
* Rename function again for clarity.Jason R. Coombs2016-02-231-2/+2
|
* Avoid setting a variable when the value is never used.Jason R. Coombs2016-02-231-4/+4
|
* Rewrite env builder routine to a simple function, _build_paths, using ↵Jason R. Coombs2016-02-231-31/+46
| | | | iterables and common recipes.
* Correct find/replace errorJason R. Coombs2016-02-231-1/+1
|
* Replace last usage of reg_valueJason R. Coombs2016-02-231-3/+2
|
* Rewrite init/set with singular construction.Jason R. Coombs2016-02-231-5/+6
|
* Rewrite for/append loop as simple list comprehension on the product of roots ↵Jason R. Coombs2016-02-231-4/+9
| | | | and versions.
* Extract find_dot_net_versions method in RegistryInfo.Jason R. Coombs2016-02-231-15/+19
|
* Extract find_windows_sdk method in RegistryInfo.Jason R. Coombs2016-02-231-37/+41
|
* Extract find_visual_c method into RegistryInfoJason R. Coombs2016-02-231-23/+27
|
* Move finding of visual studio into RegistryInfoJason R. Coombs2016-02-231-8/+11
|
* Remove another hanging indentJason R. Coombs2016-02-231-13/+7
|
* Have lookup return None when it fails, moving the moving much of the ↵Jason R. Coombs2016-02-231-41/+32
| | | | try/except logic into single-line fallback expressions.
* Extract resolution of registry paths into a RegistryInfo object.Jason R. Coombs2016-02-231-17/+48
|
* Pull program files and win dir resolution into PlatformInfoJason R. Coombs2016-02-231-10/+8
|
* Extract PlatformInfo class for capturing some of the platform info calculations.Jason R. Coombs2016-02-231-35/+52
|
* Remove redundant callJason R. Coombs2016-02-231-1/+1
|
* Reindent to eliminate long lines and hanging indents.Jason R. Coombs2016-02-231-22/+30
|
* Move imports to the top and normalize usage.Jason R. Coombs2016-02-231-46/+44
|
* Make function private and don't use a different name for it, as it performs ↵Jason R. Coombs2016-02-231-2/+2
| | | | the same purpose. Also, it doesn't set anything.
* Include 'arch' in the function signature rather than processing arguments by ↵Jason R. Coombs2016-02-231-7/+3
| | | | hand.
* Rename variable for consistencyJason R. Coombs2016-02-231-12/+12
|
* Update with comments.JGoutin2016-02-181-39/+37
|
* Improve support for standalones MVC++ 9.0/10.0 compilers by setting directly ↵JGoutin2016-02-141-10/+255
| | | | the environment if Vcvarsall.bat is missing or fail.
* Extract variablesJason R. Coombs2015-01-151-2/+4
|
* Remove unused importJason R. Coombs2015-01-151-2/+0
|
* Use except/as, now supported by Python 2.6Jason R. Coombs2015-01-041-2/+1
|
* Create global import more traditionally. Now the patched functions are ↵Jason R. Coombs2014-09-261-5/+6
| | | | available directly as well.
* Extract patched functions as top-level functionsJason R. Coombs2014-09-261-37/+41
|
* Protect against import errors.Jason R. Coombs2014-09-261-2/+6
|
* Move monkey patch to a separate moduleJason R. Coombs2014-09-261-0/+55