-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hi there,
I'm currently trying to add Conan support to Outcome.
For that purpose I chose to use build_policy = "always".
It works on Linux, but when I tried to create a package on my Windows machine, I got the following output:
Outcome/master@theo/test: Exporting package recipe
WARN: Conanfile doesn't have 'url'.
It is recommended to add it as attribute
Outcome/master@theo/test: A new conanfile.py version was exported
Outcome/master@theo/test: Folder: C:\Users\Theo\.conan\data\Outcome\master\theo\test\export
Outcome/master@theo/test: Package recipe modified in export, forcing source folder removal
Outcome/master@theo/test: Use the --keep-source, -k option to skip it
Outcome/master@theo/test: Removing 'source' folder, this can take a while for big packages
Outcome/master@theo/test: Installing package
Requirements
Outcome/master@theo/test from godzilla
Packages
Outcome/master@theo/test:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: WARN: Forced build from source
Outcome/master@theo/test: Building your package in C:\Users\Theo\.conan\data\Outcome\master\theo\test\build\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
Outcome/master@theo/test: WARN: Detected build_policy 'always', trying to remove source folder
Outcome/master@theo/test: WARN: This can take a while for big packages
Outcome/master@theo/test: Configuring sources in C:\Users\Theo\.conan\data\Outcome\master\theo\test\source
Outcome/master@theo/test: Copying sources to build folder
Outcome/master@theo/test: Generator txt created conanbuildinfo.txt
Outcome/master@theo/test: Calling build()
Outcome/master@theo/test: WARN: This conanfile has no build step
Outcome/master@theo/test: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' built
Outcome/master@theo/test: Build folder C:\Users\Theo\.conan\data\Outcome\master\theo\test\build\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
Outcome/master@theo/test: Generated conaninfo.txt
Outcome/master@theo/test: Generated conanbuildinfo.txt
Outcome/master@theo/test: Generating the package
Outcome/master@theo/test: Package folder C:\Users\Theo\.conan\data\Outcome\master\theo\test\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
Outcome/master@theo/test: Calling package()
Outcome/master@theo/test package(): Copied 1 '.hpp' files: outcome.hpp
Outcome/master@theo/test package(): Copied 1 '' files: LICENCE
Outcome/master@theo/test: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' created
Outcome/master@theo/test: Testing with 'test_package'
Outcome/master@theo/test test package: Installing dependencies
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: Building package from source as defined by build_policy='always'
Outcome/master@theo/test: WARN: Forced build from source
ERROR: [WinError 32] Le processus ne peut pas acc▒der au fichier car ce fichier est utilis▒ par un autre processus: 'C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\build\\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9'
Couldn't remove folder, might be busy or open
Close any app using it, and retry
The Windows error means: a process is already using this file. Pardon my french :)
I've tried with versions 0.28 and 0.27, it fails too. As you can see some outputs are repeated three times, it did the same thing on Linux.
Note that the package is header only, nothing is to be built, but Conan still seems to create a build folder, even if there is no build() method in the conanfile.py. From the Windows error I assume that some task is trying to remove the build folder while it's being used.
The recipe can be found here