deprecate old copy_headers, etc
@@ -6,7 +6,6 @@ from conans.util.files import mkdir, save, rmdir
from conans.util.log import logger
from conans.paths import CONANINFO, CONAN_MANIFEST
from conans.errors import ConanException, ConanExceptionInUserConanfileMethod, conanfile_exception_formatter
-from conans.model.build_info import DEFAULT_RES, DEFAULT_BIN, DEFAULT_LIB, DEFAULT_INCLUDE
from conans.model.manifest import FileTreeManifest
from conans.client.output import ScopedOutput
from conans.client.file_copier import FileCopier
@@ -23,16 +22,6 @@ def create_package(conanfile, source_folder, build_folder, package_folder, insta
output.info("Generating the package")
output.info("Package folder %s" % (package_folder))
- def wrap(dst_folder):
- def new_method(pattern, src=""):
- conanfile.copy(pattern, dst_folder, src)
- return new_method
-
- # FIXME: Deprecate these methods. Not documented. Confusing. Rely on LINTER
- conanfile.copy_headers = wrap(DEFAULT_INCLUDE)
- conanfile.copy_libs = wrap(DEFAULT_LIB)
- conanfile.copy_bins = wrap(DEFAULT_BIN)
- conanfile.copy_res = wrap(DEFAULT_RES)
try:
package_output = ScopedOutput("%s package()" % output.scope, output)
output.highlight("Calling package()")
