osqp / qdldl-python

Python interface to the QDLDL(https://github.com/osqp/qdldl) free LDL factorization routine for quasi-definite linear systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot open include file: 'qdldl_types.h': No such file or directory

liudonghua123 opened this issue · comments

I use python 3.10 x64 on windows 11. However I cann't install qdldl via pip install qdldl, I have tried both vs 2019 and vs 2022.

shell logs
D:\code\weixin\wecom-ynu>pip install cvxpy
Collecting cvxpy
  Downloading cvxpy-1.2.0-cp310-cp310-win_amd64.whl (832 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 832.9/832.9 KB 2.3 MB/s eta 0:00:00
Collecting osqp>=0.4.1
  Downloading osqp-0.6.2.post5-cp310-cp310-win_amd64.whl (278 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 278.5/278.5 KB 1.4 MB/s eta 0:00:00
Requirement already satisfied: scipy>=1.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.8.0)
Collecting ecos>=2
  Downloading ecos-2.0.10-cp310-cp310-win_amd64.whl (68 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.5/68.5 KB 1.9 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.22.2)
Collecting scs>=1.1.6
  Downloading scs-3.2.0-cp310-cp310-win_amd64.whl (8.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.1/8.1 MB 6.9 MB/s eta 0:00:00
Collecting qdldl
  Downloading qdldl-0.1.5.post0.tar.gz (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.1/69.1 KB ? eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: qdldl
  Building wheel for qdldl (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      running bdist_wheel
      running build
      running build_ext
      -- Selecting Windows SDK version  to target Windows 10.0.22000.
      CMake Error at CMakeLists.txt:4 (project):
        Failed to run MSBuild command:

          MSBuild.exe

        to get the value of VCTargetsPath:

          The system cannot find the file specified



      -- Configuring incomplete, errors occurred!
      See also "C:/Users/Liu.D.H/AppData/Local/Temp/pip-install-n_emjwy9/qdldl_9ff300c6d45349718d72defe58fac30c/c/build/CMakeFiles/CMakeOutput.log".
      The system cannot find the file specified
      CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe qdldlamd.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m &&
      building 'qdldl' extension
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      qdldl.cpp
      c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for qdldl
  Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: scs, qdldl, ecos, osqp, cvxpy
  Running setup.py install for qdldl ... error
  error: subprocess-exited-with-error

  × Running setup.py install for qdldl did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      running install
      running build
      running build_ext
      -- Selecting Windows SDK version  to target Windows 10.0.22000.
      CMake Error at CMakeLists.txt:4 (project):
        Failed to run MSBuild command:

          MSBuild.exe

        to get the value of VCTargetsPath:

          The system cannot find the file specified



      -- Configuring incomplete, errors occurred!
      See also "C:/Users/Liu.D.H/AppData/Local/Temp/pip-install-n_emjwy9/qdldl_9ff300c6d45349718d72defe58fac30c/c/build/CMakeFiles/CMakeOutput.log".
      The system cannot find the file specified
      CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe qdldlamd.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m &&
      building 'qdldl' extension
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      qdldl.cpp
      c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> qdldl

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

D:\code\weixin\wecom-ynu>set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin;%PATH%
D:\code\weixin\wecom-ynu>pip install cvxpy
Collecting cvxpy
  Using cached cvxpy-1.2.0-cp310-cp310-win_amd64.whl (832 kB)
Collecting ecos>=2
  Using cached ecos-2.0.10-cp310-cp310-win_amd64.whl (68 kB)
Requirement already satisfied: scs>=1.1.6 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (3.2.0)
Collecting osqp>=0.4.1
  Using cached osqp-0.6.2.post5-cp310-cp310-win_amd64.whl (278 kB)
Requirement already satisfied: scipy>=1.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.8.0)
Requirement already satisfied: numpy>=1.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.22.2)
Collecting qdldl
  Using cached qdldl-0.1.5.post0.tar.gz (69 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: qdldl
  Building wheel for qdldl (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [52 lines of output]
      running bdist_wheel
      running build
      running build_ext
      -- Selecting Windows SDK version  to target Windows 10.0.22000.
      CMake Error at CMakeLists.txt:4 (project):
        Failed to run MSBuild command:

          MSBuild.exe

        to get the value of VCTargetsPath:

          Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
          Copyright (C) Microsoft Corporation. All rights reserved.

          Build started 2022/3/22 9:49:39.
          Project "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" on node 1 (default targets).
          C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(439,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install Visual Studio 2015 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj]
          Done Building Project "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" (default targets) -- FAILED.

          Build FAILED.

          "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" (default target) (1) ->
          (PrepareForBuild target) ->
            C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(439,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install Visual Studio 2015 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj]

              0 Warning(s)
              1 Error(s)

          Time Elapsed 00:00:00.49


        Exit code: 1



      -- Configuring incomplete, errors occurred!
      See also "C:/Users/Liu.D.H/AppData/Local/Temp/pip-install-872phw2g/qdldl_04c3c60317d64359b0a66449445a2223/c/build/CMakeFiles/CMakeOutput.log".
      Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
      Copyright (C) Microsoft Corporation. All rights reserved.

      MSBUILD : error MSB1009: Project file does not exist.
      Switch: qdldlamd.vcxproj
      building 'qdldl' extension
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      qdldl.cpp
      c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for qdldl
  Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: qdldl, ecos, osqp, cvxpy
  Running setup.py install for qdldl ... error
  error: subprocess-exited-with-error

  × Running setup.py install for qdldl did not run successfully.
  │ exit code: 1
  ╰─> [52 lines of output]
      running install
      running build
      running build_ext
      -- Selecting Windows SDK version  to target Windows 10.0.22000.
      CMake Error at CMakeLists.txt:4 (project):
        Failed to run MSBuild command:

          MSBuild.exe

        to get the value of VCTargetsPath:

          Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
          Copyright (C) Microsoft Corporation. All rights reserved.

          Build started 2022/3/22 9:49:59.
          Project "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" on node 1 (default targets).
          C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(439,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install Visual Studio 2015 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj]
          Done Building Project "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" (default targets) -- FAILED.

          Build FAILED.

          "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj" (default target) (1) ->
          (PrepareForBuild target) ->
            C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(439,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install Visual Studio 2015 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-872phw2g\qdldl_04c3c60317d64359b0a66449445a2223\c\build\CMakeFiles\3.22.1\VCTargetsPath.vcxproj]

              0 Warning(s)
              1 Error(s)

          Time Elapsed 00:00:00.22


        Exit code: 1



      -- Configuring incomplete, errors occurred!
      See also "C:/Users/Liu.D.H/AppData/Local/Temp/pip-install-872phw2g/qdldl_04c3c60317d64359b0a66449445a2223/c/build/CMakeFiles/CMakeOutput.log".
      Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
      Copyright (C) Microsoft Corporation. All rights reserved.

      MSBUILD : error MSB1009: Project file does not exist.
      Switch: qdldlamd.vcxproj
      building 'qdldl' extension
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\include -IC:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      qdldl.cpp
      c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> qdldl

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

D:\code\weixin\wecom-ynu>

I tried to update submodule c/qdldl to the latest master branch and install via pip install .. It seems worked.

D:\code\python>git clone --recursive git@github.com:osqp/qdldl-python.git
Cloning into 'qdldl-python'...
remote: Enumerating objects: 825, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (38/38), done.Receiving objects:  11% (91/825)
remote: Total 825 (delta 27), reused 29 (delta 9), pack-reused 760 eceiving objects:  94% (776/825), 252.01 KiB | 434.00 KiB/s
Receiving objects: 100% (825/825), 279.04 KiB | 351.00 KiB/s, done.
Resolving deltas: 100% (394/394), done.
Submodule 'c/qdldl' (https://github.com/oxfordcontrol/qdldl) registered for path 'c/qdldl'
Cloning into 'D:/code/python/qdldl-python/c/qdldl'...
remote: Enumerating objects: 753, done.
remote: Counting objects: 100% (124/124), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 753 (delta 53), reused 98 (delta 41), pack-reused 629
Receiving objects: 100% (753/753), 143.01 KiB | 145.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.
Submodule path 'c/qdldl': checked out '7d16b70a10a152682204d745d814b6eb63dc5cd2'

D:\code\python>cd qdldl-python\c\
amd\    qdldl\
D:\code\python>cd qdldl-python\c\qdldl\

D:\code\python\qdldl-python\c\qdldl>git remote -v
origin  https://hub.fastgit.xyz/oxfordcontrol/qdldl (fetch)
origin  https://hub.fastgit.xyz/oxfordcontrol/qdldl (push)

D:\code\python\qdldl-python\c\qdldl>git pull
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>


D:\code\python\qdldl-python\c\qdldl>git pull origin master
From https://hub.fastgit.xyz/oxfordcontrol/qdldl
 * branch            master     -> FETCH_HEAD
Updating 7d16b70..f2665f8
Fast-forward
 .github/workflows/ci.yml     | 104 ++++++++++++++++++++++++++++++++++++++++++++++++
 .travis.yml                  |  48 ----------------------
 CMakeLists.txt               | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
 README.md                    |  31 +++++++--------
 appveyor.yml                 |  34 ----------------
 configure/qdldl_types.h.in   |  10 +++++
 configure/qdldl_version.h.in |   8 ++++
 include/.gitignore           |   1 +
 include/qdldl.h              |  96 +++++++++++++++++++++++++++-----------------
 9 files changed, 318 insertions(+), 199 deletions(-)
 create mode 100644 .github/workflows/ci.yml
 delete mode 100644 .travis.yml
 delete mode 100644 appveyor.yml
 create mode 100644 configure/qdldl_version.h.in

D:\code\python\qdldl-python\c\qdldl>cd ../..

D:\code\python\qdldl-python>git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   c/qdldl (new commits)

no changes added to commit (use "git add" and/or "git commit -a")

D:\code\python\qdldl-python>pip install .
Processing d:\code\python\qdldl-python
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.7 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from qdldl==0.1.5.post0) (1.22.2)
Requirement already satisfied: scipy>=0.13.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from qdldl==0.1.5.post0) (1.8.0)
Building wheels for collected packages: qdldl
  Building wheel for qdldl (setup.py) ... done
  Created wheel for qdldl: filename=qdldl-0.1.5.post0-cp310-cp310-win_amd64.whl size=83708 sha256=1488ac3fcbfa106659e5914c11372a1f94ada239eb5bde91cb9abe77a93ce5c0
  Stored in directory: c:\users\liu.d.h\appdata\local\pip\cache\wheels\fd\7e\a9\3f793a63388d03141ff70f27fd5bc8390092c6ae5cbc9a2ba5
Successfully built qdldl
Installing collected packages: qdldl
Successfully installed qdldl-0.1.5.post0

D:\code\python\qdldl-python>python
Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import qdldl
>>>
D:\code\python\qdldl-python>pip install cvxpy
Collecting cvxpy
  Using cached cvxpy-1.2.0-cp310-cp310-win_amd64.whl (832 kB)
Requirement already satisfied: scipy>=1.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.8.0)
Collecting osqp>=0.4.1
  Using cached osqp-0.6.2.post5-cp310-cp310-win_amd64.whl (278 kB)
Requirement already satisfied: scs>=1.1.6 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (3.2.0)
Collecting ecos>=2
  Using cached ecos-2.0.10-cp310-cp310-win_amd64.whl (68 kB)
Requirement already satisfied: numpy>=1.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from cvxpy) (1.22.2)
Requirement already satisfied: qdldl in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from osqp>=0.4.1->cvxpy) (0.1.5.post0)
Installing collected packages: ecos, osqp, cvxpy
Successfully installed cvxpy-1.2.0 ecos-2.0.10 osqp-0.6.2.post5

D:\code\python\qdldl-python>cat > %temp%/cvx_demo.py
import cvxpy as cp
import numpy as np

# Problem data.
m = 30
n = 20
np.random.seed(1)
A = np.random.randn(m, n)
b = np.random.randn(m)

# Construct the problem.
x = cp.Variable(n)
objective = cp.Minimize(cp.sum_squares(A @ x - b))
constraints = [0 <= x, x <= 1]
prob = cp.Problem(objective, constraints)

# The optimal objective value is returned by `prob.solve()`.
result = prob.solve()
# The optimal value for x is stored in `x.value`.
print(x.value)
# The optimal Lagrange multiplier for a constraint is stored in
# `constraint.dual_value`.
print(constraints[0].dual_value)

D:\code\python\qdldl-python>python %temp%/cvx_demo.py
[-1.79109255e-19  2.85112420e-02  2.79973443e-19  3.37658729e-20
 -2.72802663e-19  1.49285011e-01 -9.94082533e-20  8.35373900e-20
  2.46718649e-01  5.78224144e-01 -4.03739463e-19  1.01242860e-03
 -9.28486180e-20  2.26767464e-01 -1.58813678e-19 -8.97232272e-20
 -1.22145729e-19 -1.51509428e-19  1.12060672e-19 -3.48318635e-19]
[ 2.50938945  0.          2.78354615  1.79425782 13.08579183  0.
  0.73716363  3.35344995  0.          0.          8.93825054  0.
  7.02955161  0.          4.71068649  3.18873635  2.06090107 10.08166738
  3.0481157   8.53268239]

D:\code\python\qdldl-python>