Skip to content
Snippets Groups Projects
Commit aa42386a authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

try to fix libname

parent cbf0c9fe
Branches
Tags
No related merge requests found
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
import h5py
import subprocess
import os import os
import sys
import shutil import shutil
import subprocess
import h5py
from datetime import datetime from datetime import datetime
import math import math
import bfps import bfps
...@@ -139,7 +140,11 @@ class code(base): ...@@ -139,7 +140,11 @@ class code(base):
raise IOError('header not there:\n' + raise IOError('header not there:\n' +
'{0}\n'.format(os.path.join(bfps.header_dir, 'base.hpp')) + '{0}\n'.format(os.path.join(bfps.header_dir, 'base.hpp')) +
'{0}\n'.format(bfps.dist_loc)) '{0}\n'.format(bfps.dist_loc))
libraries = ['bfps.cpython-34m'] + bfps.install_info['libraries'] if sys.version_info[0] == 2:
libraries = ['bfps']
else:
libraries = ['bfps.cpython-{0}{1}m'.format(sys.version_info[0], sys.version_info[1])]
libraries += bfps.install_info['libraries']
command_strings = ['g++'] command_strings = ['g++']
command_strings += [self.name + '.cpp', '-o', self.name] command_strings += [self.name + '.cpp', '-o', self.name]
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment