Skip to content
Snippets Groups Projects
Commit 7430f914 authored by Mayeul d'Avezac's avatar Mayeul d'Avezac
Browse files

Can install espresso on OS/X

Espresso uses unix utility `find dir -name \*.x` to determine the executable to
install. On OS/X, it also finds a bunch of debug symbols associated
with the exectuble. These files have the same name, but are in a
different directory. So the install process is done by hand in the
package.py file, for OS/X.
parent 397e0d13
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ def check_variants(self, spec):
raise RuntimeError(error.format(variant='elpa'))
def install(self, spec, prefix):
from glob import glob
self.check_variants(spec)
options = ['-prefix=%s' % prefix.bin]
......@@ -61,5 +62,11 @@ def install(self, spec, prefix):
configure(*options)
make('all')
make('install')
if spec.architecture.startswith('darwin'):
mkdirp(prefix.bin)
for filename in glob("bin/*.x"):
install(filename, prefix.bin)
else:
make('install')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment