forked from mpusz/mp-units
refactor: self.copy
replaced by the explicit tool copy
(for Conan 2.0)
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
from conans import ConanFile, tools
|
from conans import ConanFile, tools
|
||||||
from conans.tools import Version, check_min_cppstd
|
from conans.tools import Version, check_min_cppstd
|
||||||
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
|
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
|
||||||
|
from conan.tools.files import copy
|
||||||
from conans.errors import ConanInvalidConfiguration
|
from conans.errors import ConanInvalidConfiguration
|
||||||
import os, re
|
import os, re
|
||||||
|
|
||||||
@@ -160,7 +161,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
self.info.header_only()
|
self.info.header_only()
|
||||||
|
|
||||||
def package(self):
|
def package(self):
|
||||||
self.copy("LICENSE.md", dst="licenses")
|
copy(self, "LICENSE.md", self.source_folder, os.path.join(self.package_folder, "licenses"))
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
cmake.install()
|
cmake.install()
|
||||||
tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
|
tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
|
||||||
|
Reference in New Issue
Block a user