Skip to content

Instantly share code, notes, and snippets.

@pacien

pacien/osqp.nix Secret

Last active October 27, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacien/7f368c7b26f20a6e3c187bfcecbdc472 to your computer and use it in GitHub Desktop.
Save pacien/7f368c7b26f20a6e3c187bfcecbdc472 to your computer and use it in GitHub Desktop.
{ lib, buildPythonPackage, fetchPypi,
cmake,
numpy, future, scipy }:
buildPythonPackage rec {
pname = "osqp";
version = "0.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "130frig5bznfacqp9jwbshmbqd2xw3ixdspsbkrwsvkdaab7kca7";
};
postPatch = ''
# disable broken test: https://github.com/oxfordcontrol/osqp-python/commit/7e62bd9
rm module/tests/mkl_pardiso_test.py
'';
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ numpy future scipy ];
}
❯ nix-build -E '(import <nixos-19.03> {}).python3Packages.callPackage ./osqp.nix {}'
these derivations will be built:
/nix/store/wr8s0vz3qi34lf9pdq5pkmkfm2jp6v7h-python3.7-osqp-0.6.1.drv
building '/nix/store/wr8s0vz3qi34lf9pdq5pkmkfm2jp6v7h-python3.7-osqp-0.6.1.drv'...
unpacking sources
unpacking source archive /nix/store/2ajdah38pmcn6izyynxsn987zp6gf44z-osqp-0.6.1.tar.gz
source root is osqp-0.6.1
setting SOURCE_DATE_EPOCH to timestamp 1567278497 of file osqp-0.6.1/setup.cfg
patching sources
configuring
building
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/osqp
copying module/interface.py -> build/lib.linux-x86_64-3.7/osqp
copying module/__init__.py -> build/lib.linux-x86_64-3.7/osqp
copying module/utils.py -> build/lib.linux-x86_64-3.7/osqp
creating build/lib.linux-x86_64-3.7/osqp/codegen
copying module/codegen/__init__.py -> build/lib.linux-x86_64-3.7/osqp/codegen
copying module/codegen/utils.py -> build/lib.linux-x86_64-3.7/osqp/codegen
copying module/codegen/code_generator.py -> build/lib.linux-x86_64-3.7/osqp/codegen
creating build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/codegen_vectors_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/non_convex_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/dual_infeasibility_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/feasibility_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/unconstrained_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/basic_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/polishing_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/__init__.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/update_matrices_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/warm_start_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/primal_infeasibility_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
copying module/tests/codegen_matrices_test.py -> build/lib.linux-x86_64-3.7/osqp/tests
creating build/lib.linux-x86_64-3.7/osqppurepy
copying modulepurepy/interface.py -> build/lib.linux-x86_64-3.7/osqppurepy
copying modulepurepy/__init__.py -> build/lib.linux-x86_64-3.7/osqppurepy
copying modulepurepy/_osqp.py -> build/lib.linux-x86_64-3.7/osqppurepy
running egg_info
writing osqp.egg-info/PKG-INFO
writing dependency_links to osqp.egg-info/dependency_links.txt
writing requirements to osqp.egg-info/requires.txt
writing top-level names to osqp.egg-info/top_level.txt
reading manifest file 'osqp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'osqp.egg-info/SOURCES.txt'
creating build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate
copying module/codegen/files_to_generate/CMakeLists.txt -> build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate
copying module/codegen/files_to_generate/emosqpmodule.c -> build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate
copying module/codegen/files_to_generate/example.c -> build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate
copying module/codegen/files_to_generate/setup.py -> build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate
creating build/lib.linux-x86_64-3.7/osqp/codegen/sources
creating build/lib.linux-x86_64-3.7/osqp/codegen/sources/configure
copying module/codegen/sources/configure/osqp_configure.h.in -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/configure
copying module/codegen/sources/configure/qdldl_types.h.in -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/configure
creating build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/CMakeLists.txt -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/auxil.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/constants.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/error.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/glob_opts.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/kkt.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/lin_alg.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/osqp.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/proj.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/qdldl.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/qdldl_interface.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/scaling.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/types.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
copying module/codegen/sources/include/util.h -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/include
creating build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/CMakeLists.txt -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/auxil.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/error.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/kkt.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/lin_alg.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/osqp.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/proj.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/qdldl.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/qdldl_interface.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/scaling.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
copying module/codegen/sources/src/util.c -> build/lib.linux-x86_64-3.7/osqp/codegen/sources/src
running build_ext
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/gcc
-- Check for working C compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/g++
-- Check for working CXX compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- We are on a Linux system
-- Embedded is OFF
-- Printing is ON
-- Profiling is ON
-- User interrupt is ON
-- Floats are OFF
-- Long integers (64bit) are OFF
-- Code coverage is OFF
-- MKL Pardiso: ON
-- Floats are OFF
-- Long integers (64bit) are OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /build/osqp-0.6.1/osqp_sources/build
Scanning dependencies of target qdldlobject
[ 3%] Building C object lin_sys/direct/qdldl/qdldl_sources/CMakeFiles/qdldlobject.dir/src/qdldl.c.o
[ 3%] Built target qdldlobject
Scanning dependencies of target linsys_pardiso
[ 6%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o
[ 10%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_loader.c.o
[ 10%] Built target linsys_pardiso
Scanning dependencies of target linsys_qdldl
[ 13%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_1.c.o
[ 16%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_2.c.o
[ 20%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_aat.c.o
[ 23%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_control.c.o
[ 26%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_defaults.c.o
[ 30%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_info.c.o
[ 33%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_order.c.o
[ 36%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_post_tree.c.o
[ 40%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_postorder.c.o
[ 43%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_preprocess.c.o
[ 46%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_valid.c.o
[ 50%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/SuiteSparse_config.c.o
[ 53%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/qdldl_interface.c.o
[ 53%] Built target linsys_qdldl
Scanning dependencies of target osqpstatic
[ 56%] Building C object CMakeFiles/osqpstatic.dir/src/auxil.c.o
[ 60%] Building C object CMakeFiles/osqpstatic.dir/src/error.c.o
[ 63%] Building C object CMakeFiles/osqpstatic.dir/src/lin_alg.c.o
[ 66%] Building C object CMakeFiles/osqpstatic.dir/src/osqp.c.o
[ 70%] Building C object CMakeFiles/osqpstatic.dir/src/proj.c.o
[ 73%] Building C object CMakeFiles/osqpstatic.dir/src/scaling.c.o
[ 76%] Building C object CMakeFiles/osqpstatic.dir/src/util.c.o
[ 80%] Building C object CMakeFiles/osqpstatic.dir/src/kkt.c.o
[ 83%] Building C object CMakeFiles/osqpstatic.dir/src/cs.c.o
[ 86%] Building C object CMakeFiles/osqpstatic.dir/src/polish.c.o
[ 90%] Building C object CMakeFiles/osqpstatic.dir/src/lin_sys.c.o
[ 93%] Building C object CMakeFiles/osqpstatic.dir/src/ctrlc.c.o
[ 96%] Building C object CMakeFiles/osqpstatic.dir/lin_sys/lib_handler.c.o
[100%] Linking C static library out/libosqp.a
[100%] Built target osqpstatic
building 'osqp._osqp' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/extension
creating build/temp.linux-x86_64-3.7/extension/src
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYTHON -Iosqp_sources/include -Iosqp_sources/lin_sys/direct/qdldl -Iosqp_sources/lin_sys/direct/qdldl/qdldl_sources/include -Iextension/include -I/nix/store/f0nyxrya75w6hssmbsz8iwb3azj7zwkn-python3.7-numpy-1.16.1/lib/python3.7/site-packages/numpy/core/include -I/nix/store/7vksfpqznpszlskjizhli4i1gr0bgcz1-python3-3.7.4/include/python3.7m -c extension/src/osqpmodule.c -o build/temp.linux-x86_64-3.7/extension/src/osqpmodule.o -O3
gcc -pthread -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.6/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.28.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20190112/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.0.2t/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.6/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.28.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20190112/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.0.2t/lib build/temp.linux-x86_64-3.7/extension/src/osqpmodule.o extension/src/libosqp.a -L/nix/store/7vksfpqznpszlskjizhli4i1gr0bgcz1-python3-3.7.4/lib -lrt -lpython3.7m -o build/lib.linux-x86_64-3.7/osqp/_osqp.cpython-37m-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/osqppurepy
copying build/lib.linux-x86_64-3.7/osqppurepy/interface.py -> build/bdist.linux-x86_64/wheel/osqppurepy
copying build/lib.linux-x86_64-3.7/osqppurepy/__init__.py -> build/bdist.linux-x86_64/wheel/osqppurepy
copying build/lib.linux-x86_64-3.7/osqppurepy/_osqp.py -> build/bdist.linux-x86_64/wheel/osqppurepy
creating build/bdist.linux-x86_64/wheel/osqp
copying build/lib.linux-x86_64-3.7/osqp/interface.py -> build/bdist.linux-x86_64/wheel/osqp
creating build/bdist.linux-x86_64/wheel/osqp/codegen
creating build/bdist.linux-x86_64/wheel/osqp/codegen/files_to_generate
copying build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate/setup.py -> build/bdist.linux-x86_64/wheel/osqp/codegen/files_to_generate
copying build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate/example.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/files_to_generate
copying build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate/CMakeLists.txt -> build/bdist.linux-x86_64/wheel/osqp/codegen/files_to_generate
copying build/lib.linux-x86_64-3.7/osqp/codegen/files_to_generate/emosqpmodule.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/files_to_generate
creating build/bdist.linux-x86_64/wheel/osqp/codegen/sources
creating build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/qdldl_interface.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/error.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/glob_opts.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/proj.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/types.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/util.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/CMakeLists.txt -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/auxil.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/kkt.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/qdldl.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/constants.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/scaling.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/lin_alg.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/include/osqp.h -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/include
creating build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/lin_alg.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/osqp.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/proj.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/qdldl.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/CMakeLists.txt -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/util.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/auxil.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/error.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/kkt.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/qdldl_interface.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/src/scaling.c -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/src
creating build/bdist.linux-x86_64/wheel/osqp/codegen/sources/configure
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/configure/osqp_configure.h.in -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/configure
copying build/lib.linux-x86_64-3.7/osqp/codegen/sources/configure/qdldl_types.h.in -> build/bdist.linux-x86_64/wheel/osqp/codegen/sources/configure
copying build/lib.linux-x86_64-3.7/osqp/codegen/__init__.py -> build/bdist.linux-x86_64/wheel/osqp/codegen
copying build/lib.linux-x86_64-3.7/osqp/codegen/utils.py -> build/bdist.linux-x86_64/wheel/osqp/codegen
copying build/lib.linux-x86_64-3.7/osqp/codegen/code_generator.py -> build/bdist.linux-x86_64/wheel/osqp/codegen
copying build/lib.linux-x86_64-3.7/osqp/_osqp.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/osqp
copying build/lib.linux-x86_64-3.7/osqp/__init__.py -> build/bdist.linux-x86_64/wheel/osqp
creating build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/codegen_vectors_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/non_convex_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/dual_infeasibility_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/feasibility_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/unconstrained_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/basic_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/polishing_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/__init__.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/update_matrices_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/warm_start_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/primal_infeasibility_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/tests/codegen_matrices_test.py -> build/bdist.linux-x86_64/wheel/osqp/tests
copying build/lib.linux-x86_64-3.7/osqp/utils.py -> build/bdist.linux-x86_64/wheel/osqp
running install_egg_info
Copying osqp.egg-info to build/bdist.linux-x86_64/wheel/osqp-0.6.1-py3.7.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/osqp-0.6.1.dist-info/WHEEL
creating 'dist/osqp-0.6.1-cp37-cp37m-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'osqp/__init__.py'
adding 'osqp/_osqp.cpython-37m-x86_64-linux-gnu.so'
adding 'osqp/interface.py'
adding 'osqp/utils.py'
adding 'osqp/codegen/__init__.py'
adding 'osqp/codegen/code_generator.py'
adding 'osqp/codegen/utils.py'
adding 'osqp/codegen/files_to_generate/CMakeLists.txt'
adding 'osqp/codegen/files_to_generate/emosqpmodule.c'
adding 'osqp/codegen/files_to_generate/example.c'
adding 'osqp/codegen/files_to_generate/setup.py'
adding 'osqp/codegen/sources/configure/osqp_configure.h.in'
adding 'osqp/codegen/sources/configure/qdldl_types.h.in'
adding 'osqp/codegen/sources/include/CMakeLists.txt'
adding 'osqp/codegen/sources/include/auxil.h'
adding 'osqp/codegen/sources/include/constants.h'
adding 'osqp/codegen/sources/include/error.h'
adding 'osqp/codegen/sources/include/glob_opts.h'
adding 'osqp/codegen/sources/include/kkt.h'
adding 'osqp/codegen/sources/include/lin_alg.h'
adding 'osqp/codegen/sources/include/osqp.h'
adding 'osqp/codegen/sources/include/proj.h'
adding 'osqp/codegen/sources/include/qdldl.h'
adding 'osqp/codegen/sources/include/qdldl_interface.h'
adding 'osqp/codegen/sources/include/scaling.h'
adding 'osqp/codegen/sources/include/types.h'
adding 'osqp/codegen/sources/include/util.h'
adding 'osqp/codegen/sources/src/CMakeLists.txt'
adding 'osqp/codegen/sources/src/auxil.c'
adding 'osqp/codegen/sources/src/error.c'
adding 'osqp/codegen/sources/src/kkt.c'
adding 'osqp/codegen/sources/src/lin_alg.c'
adding 'osqp/codegen/sources/src/osqp.c'
adding 'osqp/codegen/sources/src/proj.c'
adding 'osqp/codegen/sources/src/qdldl.c'
adding 'osqp/codegen/sources/src/qdldl_interface.c'
adding 'osqp/codegen/sources/src/scaling.c'
adding 'osqp/codegen/sources/src/util.c'
adding 'osqp/tests/__init__.py'
adding 'osqp/tests/basic_test.py'
adding 'osqp/tests/codegen_matrices_test.py'
adding 'osqp/tests/codegen_vectors_test.py'
adding 'osqp/tests/dual_infeasibility_test.py'
adding 'osqp/tests/feasibility_test.py'
adding 'osqp/tests/non_convex_test.py'
adding 'osqp/tests/polishing_test.py'
adding 'osqp/tests/primal_infeasibility_test.py'
adding 'osqp/tests/unconstrained_test.py'
adding 'osqp/tests/update_matrices_test.py'
adding 'osqp/tests/warm_start_test.py'
adding 'osqppurepy/__init__.py'
adding 'osqppurepy/_osqp.py'
adding 'osqppurepy/interface.py'
adding 'osqp-0.6.1.dist-info/LICENSE'
adding 'osqp-0.6.1.dist-info/METADATA'
adding 'osqp-0.6.1.dist-info/WHEEL'
adding 'osqp-0.6.1.dist-info/top_level.txt'
adding 'osqp-0.6.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
installing
/build/osqp-0.6.1/dist /build/osqp-0.6.1
Processing ./osqp-0.6.1-cp37-cp37m-linux_x86_64.whl
Requirement already satisfied: future in /nix/store/x99xf58lxljrim5b7lfygxq4vkvrc6lc-python3.7-future-0.17.1/lib/python3.7/site-packages (from osqp==0.6.1) (0.17.1)
Requirement already satisfied: scipy>=0.13.2 in /nix/store/nzxnwa7pnkhjkkajiql7y279ki0dyp4n-python3.7-scipy-1.2.1/lib/python3.7/site-packages (from osqp==0.6.1) (1.2.1)
Requirement already satisfied: numpy>=1.7 in /nix/store/f0nyxrya75w6hssmbsz8iwb3azj7zwkn-python3.7-numpy-1.16.1/lib/python3.7/site-packages (from osqp==0.6.1) (1.16.1)
Installing collected packages: osqp
Successfully installed osqp-0.6.1
/build/osqp-0.6.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1
shrinking /nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1/lib/python3.7/site-packages/osqp/_osqp.cpython-37m-x86_64-linux-gnu.so
strip is /nix/store/aymbjlfqiqy3v536zia24m6bszc9mkpi-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1/lib
patching script interpreter paths in /nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1
checking for references to /build/ in /nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1...
running install tests
running test
running egg_info
writing osqp.egg-info/PKG-INFO
writing dependency_links to osqp.egg-info/dependency_links.txt
writing requirements to osqp.egg-info/requires.txt
writing top-level names to osqp.egg-info/top_level.txt
reading manifest file 'osqp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'osqp.egg-info/SOURCES.txt'
running build_ext
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/gcc
-- Check for working C compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/g++
-- Check for working CXX compiler: /nix/store/kivwik98k5llwmn7mzizj604j481pa55-gcc-wrapper-7.4.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- We are on a Linux system
-- Embedded is OFF
-- Printing is ON
-- Profiling is ON
-- User interrupt is ON
-- Floats are OFF
-- Long integers (64bit) are OFF
-- Code coverage is OFF
-- MKL Pardiso: ON
-- Floats are OFF
-- Long integers (64bit) are OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /build/osqp-0.6.1/osqp_sources/build
Scanning dependencies of target qdldlobject
[ 3%] Building C object lin_sys/direct/qdldl/qdldl_sources/CMakeFiles/qdldlobject.dir/src/qdldl.c.o
[ 3%] Built target qdldlobject
Scanning dependencies of target linsys_pardiso
[ 6%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o
[ 10%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_loader.c.o
[ 10%] Built target linsys_pardiso
Scanning dependencies of target linsys_qdldl
[ 13%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_1.c.o
[ 16%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_2.c.o
[ 20%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_aat.c.o
[ 23%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_control.c.o
[ 26%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_defaults.c.o
[ 30%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_info.c.o
[ 33%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_order.c.o
[ 36%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_post_tree.c.o
[ 40%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_postorder.c.o
[ 43%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_preprocess.c.o
[ 46%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/amd_valid.c.o
[ 50%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/amd/src/SuiteSparse_config.c.o
[ 53%] Building C object lin_sys/direct/qdldl/CMakeFiles/linsys_qdldl.dir/qdldl_interface.c.o
[ 53%] Built target linsys_qdldl
Scanning dependencies of target osqpstatic
[ 56%] Building C object CMakeFiles/osqpstatic.dir/src/auxil.c.o
[ 60%] Building C object CMakeFiles/osqpstatic.dir/src/error.c.o
[ 63%] Building C object CMakeFiles/osqpstatic.dir/src/lin_alg.c.o
[ 66%] Building C object CMakeFiles/osqpstatic.dir/src/osqp.c.o
[ 70%] Building C object CMakeFiles/osqpstatic.dir/src/proj.c.o
[ 73%] Building C object CMakeFiles/osqpstatic.dir/src/scaling.c.o
[ 76%] Building C object CMakeFiles/osqpstatic.dir/src/util.c.o
[ 80%] Building C object CMakeFiles/osqpstatic.dir/src/kkt.c.o
[ 83%] Building C object CMakeFiles/osqpstatic.dir/src/cs.c.o
[ 86%] Building C object CMakeFiles/osqpstatic.dir/src/polish.c.o
[ 90%] Building C object CMakeFiles/osqpstatic.dir/src/lin_sys.c.o
[ 93%] Building C object CMakeFiles/osqpstatic.dir/src/ctrlc.c.o
[ 96%] Building C object CMakeFiles/osqpstatic.dir/lin_sys/lib_handler.c.o
[100%] Linking C static library out/libosqp.a
[100%] Built target osqpstatic
copying build/lib.linux-x86_64-3.7/osqp/_osqp.cpython-37m-x86_64-linux-gnu.so -> module
test_solve (module.tests.codegen_vectors_test.codegen_vectors_tests) ... Getting workspace from OSQP object... [done]
Creating target directories... [done]
Copying OSQP sources... [done]
Generating customized code... [done]
Compiling Python wrapper... CMake Error at CMakeLists.txt:120 (add_subdirectory):
The source directory
/build/osqp-0.6.1/code/include
does not contain a CMakeLists.txt file.
[done]
Copying code-generated Python solver to current directory... [done]
ok
test_update_bounds (module.tests.codegen_vectors_test.codegen_vectors_tests) ... ok
test_update_l (module.tests.codegen_vectors_test.codegen_vectors_tests) ... ok
test_update_q (module.tests.codegen_vectors_test.codegen_vectors_tests) ... ok
test_update_u (module.tests.codegen_vectors_test.codegen_vectors_tests) ... ok
test_nan (module.tests.non_convex_test.non_convex_tests) ... ok
test_non_convex_big_sigma (module.tests.non_convex_test.non_convex_tests) ... ok
test_non_convex_small_sigma (module.tests.non_convex_test.non_convex_tests) ... ERROR in LDL_factor: Error in KKT matrix LDL factorization when computing the nonzero elements. The problem seems to be non-convex
ERROR in osqp_setup: KKT matrix factorization.
The problem seems to be non-convex.
ok
test_dual_infeasible_lp (module.tests.dual_infeasibility_test.dual_infeasibility_tests) ... ok
test_dual_infeasible_qp (module.tests.dual_infeasibility_test.dual_infeasibility_tests) ... ok
test_primal_and_dual_infeasible_problem (module.tests.dual_infeasibility_test.dual_infeasibility_tests) ... ok
test_feasibility_problem (module.tests.feasibility_test.feasibility_tests) ... ok
test_unconstrained_problem (module.tests.unconstrained_test.unconstrained_tests) ... ok
test_basic_QP (module.tests.basic_test.basic_tests) ... ok
test_solve_full_vs_object (module.tests.basic_test.basic_tests) ... ok
test_update_bounds (module.tests.basic_test.basic_tests) ... ok
test_update_check_termination (module.tests.basic_test.basic_tests) ... ok
test_update_l (module.tests.basic_test.basic_tests) ... ok
test_update_max_iter (module.tests.basic_test.basic_tests) ... ok
test_update_q (module.tests.basic_test.basic_tests) ... ok
test_update_rho (module.tests.basic_test.basic_tests) ... ok
test_update_time_limit (module.tests.basic_test.basic_tests) ... iter objective pri res dua res rho time
run time limit reached
0 2.0000e+01 1.19e-08 5.57e-09 1.00e-01 1.61e-05s
status: run time limit reached
number of iterations: 0
run time: 5.39e-05s
optimal rho estimate: 7.30e-02
ok
test_update_u (module.tests.basic_test.basic_tests) ... ok
test_upper_triangular_P (module.tests.basic_test.basic_tests) ... ok
test_polish_random (module.tests.polishing_test.polish_tests) ... ok
test_polish_simple (module.tests.polishing_test.polish_tests) ... ok
test_polish_unconstrained (module.tests.polishing_test.polish_tests) ... ok
test_solve (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_A (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_A_allind (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P_A_allind (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P_A_indA (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P_A_indP (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P_A_indP_indA (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_update_P_allind (module.tests.update_matrices_test.update_matrices_tests) ... ok
test_warm_start (module.tests.warm_start_test.warm_start_tests) ... ok
test_primal_and_dual_infeasible_problem (module.tests.primal_infeasibility_test.primal_infeasibility_tests) ... ok
test_primal_infeasible_problem (module.tests.primal_infeasibility_test.primal_infeasibility_tests) ... ok
test_solve (module.tests.codegen_matrices_test.codegen_matrices_tests) ... Getting workspace from OSQP object... [done]
Creating target directories... [done]
Copying OSQP sources... [done]
Generating customized code... [done]
Compiling Python wrapper... CMake Error at CMakeLists.txt:120 (add_subdirectory):
The source directory
/build/osqp-0.6.1/code2/include
does not contain a CMakeLists.txt file.
[done]
Copying code-generated Python solver to current directory... [done]
ok
test_update_A (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_A_allind (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P_A_allind (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P_A_indA (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P_A_indP (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P_A_indP_indA (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
test_update_P_allind (module.tests.codegen_matrices_test.codegen_matrices_tests) ... ok
----------------------------------------------------------------------
Ran 48 tests in 5.481s
OK
/nix/store/ix8g1fj4lb0gz89wrlzfrp3k8np3ganj-python3.7-osqp-0.6.1
❯ nix-build -E '(import <nixos-unstable> {}).python3Packages.callPackage ./osqp.nix {}'
these derivations will be built:
/nix/store/7akam5g2v1hx6jrgmhb5j5qf1pxqry5c-python3.7-osqp-0.6.1.drv
these paths will be fetched (19.18 MiB download, 93.96 MiB unpacked):
/nix/store/0f3qa6mkab9l9033rf89crbvllvv5bh1-setuptools-check-hook
/nix/store/4r9q12jaiwx6s3bc1h21skr7wwx45vxj-python-catch-conflicts-hook
/nix/store/6jh4swpfsk70w250bgymg68ag7pv5g5l-python3.7-setuptools-41.2.0
/nix/store/cxdg0la3kk7qhpkqx96vdf22k60ii6pb-pip-install-hook
/nix/store/d8v1x74g1ifgn1473p6cqzmwc8air5wj-python3.7-scipy-1.3.1
/nix/store/f1h5c5v5yvyfgwz0an50lhhnlvhdh02z-hook
/nix/store/g27hir5fqm8vk43fj715y9327nckkp41-python3.7-pip-19.2.3
/nix/store/gwvbvl9h91pm766nvql5i76c67gf6s4y-python3.7-wheel-0.33.6
/nix/store/irpvgcllwvhql07fna8b6y1wkjyxxh0y-setuptools-setup-hook
/nix/store/jd8qm94vq3435iazjbwpm5xh8y1iz4zz-python3.7-future-0.17.1
/nix/store/x093rkpzsxqfq7xy21am6p7x4hbhirkn-python3.7-numpy-1.17.2
/nix/store/yp5249glhq03d043207z4g73i3yks52j-python-imports-check-hook.sh
copying path '/nix/store/f1h5c5v5yvyfgwz0an50lhhnlvhdh02z-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/jd8qm94vq3435iazjbwpm5xh8y1iz4zz-python3.7-future-0.17.1' from 'https://cache.nixos.org'...
copying path '/nix/store/yp5249glhq03d043207z4g73i3yks52j-python-imports-check-hook.sh' from 'https://cache.nixos.org'...
copying path '/nix/store/x093rkpzsxqfq7xy21am6p7x4hbhirkn-python3.7-numpy-1.17.2' from 'https://cache.nixos.org'...
copying path '/nix/store/6jh4swpfsk70w250bgymg68ag7pv5g5l-python3.7-setuptools-41.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/g27hir5fqm8vk43fj715y9327nckkp41-python3.7-pip-19.2.3' from 'https://cache.nixos.org'...
copying path '/nix/store/gwvbvl9h91pm766nvql5i76c67gf6s4y-python3.7-wheel-0.33.6' from 'https://cache.nixos.org'...
copying path '/nix/store/0f3qa6mkab9l9033rf89crbvllvv5bh1-setuptools-check-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/irpvgcllwvhql07fna8b6y1wkjyxxh0y-setuptools-setup-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/4r9q12jaiwx6s3bc1h21skr7wwx45vxj-python-catch-conflicts-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/cxdg0la3kk7qhpkqx96vdf22k60ii6pb-pip-install-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/d8v1x74g1ifgn1473p6cqzmwc8air5wj-python3.7-scipy-1.3.1' from 'https://cache.nixos.org'...
building '/nix/store/7akam5g2v1hx6jrgmhb5j5qf1pxqry5c-python3.7-osqp-0.6.1.drv'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
unpacking sources
unpacking source archive /nix/store/2ajdah38pmcn6izyynxsn987zp6gf44z-osqp-0.6.1.tar.gz
source root is osqp-0.6.1
setting SOURCE_DATE_EPOCH to timestamp 1567278497 of file osqp-0.6.1/setup.cfg
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/share/doc/ -DCMAKE_INSTALL_INFODIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/cg0k49h66nkdqx6ccwnqr0i4q0fnfznc-binutils-2.31.1/bin/strip -DCMAKE_RANLIB=/nix/store/cg0k49h66nkdqx6ccwnqr0i4q0fnfznc-binutils-2.31.1/bin/ranlib -DCMAKE_AR=/nix/store/cg0k49h66nkdqx6ccwnqr0i4q0fnfznc-binutils-2.31.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/cyvln0mgf50ly9qq0vsbnh7479bpzama-python3.7-osqp-0.6.1
CMake Error: The source directory "/build/osqp-0.6.1" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
builder for '/nix/store/7akam5g2v1hx6jrgmhb5j5qf1pxqry5c-python3.7-osqp-0.6.1.drv' failed with exit code 1
error: build of '/nix/store/7akam5g2v1hx6jrgmhb5j5qf1pxqry5c-python3.7-osqp-0.6.1.drv' failed
@pacien
Copy link
Author

pacien commented Oct 27, 2019

This builds fine on NixOS 19.03 with nix-build -E '(import <nixos-19.03> {}).python3Packages.callPackage ./osqp.nix {}'.

However this fails on 19.09 and on the unstable channel: nix-build -E '(import <nixos-unstable> {}).python3Packages.callPackage ./osqp.nix {}'

@FRidh
Copy link

FRidh commented Oct 27, 2019

dontUseCmakeConfigure = true; is needed

@pacien
Copy link
Author

pacien commented Oct 27, 2019

This solves it ; Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment