Fix bug when system perl is used. (#11034)
* Fix bug when system perl is used. If system perl is being used through packages.yaml there cannot be dependent modules. The setup_dependent_packages function should not do anything in that case.
This commit is contained in:
parent
1e9748a3c8
commit
a5315f3878
@ -190,7 +190,12 @@ def setup_dependent_package(self, module, dependent_spec):
|
|||||||
perl('Makefile.PL','INSTALL_BASE=%s' % self.prefix)
|
perl('Makefile.PL','INSTALL_BASE=%s' % self.prefix)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# perl extension builds can have a global perl executable function
|
# If system perl is used through packages.yaml
|
||||||
|
# there cannot be extensions.
|
||||||
|
if dependent_spec.package.is_extension:
|
||||||
|
|
||||||
|
# perl extension builds can have a global perl
|
||||||
|
# executable function
|
||||||
module.perl = self.spec['perl'].command
|
module.perl = self.spec['perl'].command
|
||||||
|
|
||||||
# Add variables for library directory
|
# Add variables for library directory
|
||||||
@ -198,7 +203,6 @@ def setup_dependent_package(self, module, dependent_spec):
|
|||||||
|
|
||||||
# Make the site packages directory for extensions,
|
# Make the site packages directory for extensions,
|
||||||
# if it does not exist already.
|
# if it does not exist already.
|
||||||
if dependent_spec.package.is_extension:
|
|
||||||
mkdirp(module.perl_lib_dir)
|
mkdirp(module.perl_lib_dir)
|
||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
|
Loading…
Reference in New Issue
Block a user