Skip to content

Commit

Permalink
Create an include/mpeu directory even if it is empty
Browse files Browse the repository at this point in the history
* Each library having an include directory means that the pkgconfig
  file is consistent and avoids users of oasis3 receiving missing
  directory errors.
  • Loading branch information
harshula committed Dec 20, 2022
1 parent 7a3d6e0 commit edf8313
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/oasis3-mct/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,13 @@ def build(self, spec, prefix):

def install(self, spec, prefix):

mkdirp(prefix.include.mct)
# The directory name has a '.', so create the path manually:
mkdirp(join_path(prefix.include, "psmile.MPI1"))
mkdirp(prefix.include.scrip)
mkdirp(prefix.lib.pkgconfig)

src_dst = []
for libname in self.__libs.keys():

mkdirp(join_path(prefix.include, libname))

for f in [ self.__libs[libname]["filerelpath"],
self.__libs[libname]["pcrelpath"] ]:
src_dst.append( (join_path(self.__builddir, f),
Expand Down

0 comments on commit edf8313

Please sign in to comment.