Skip to content
Snippets Groups Projects
Commit 83bba017 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

Merge branch 'bugfix/sdist' into develop

parents 51b62173 40c70690
No related branches found
No related tags found
No related merge requests found
...@@ -33,14 +33,8 @@ import pkg_resources ...@@ -33,14 +33,8 @@ import pkg_resources
__version__ = pkg_resources.require('bfps')[0].version __version__ = pkg_resources.require('bfps')[0].version
_dist = pkg_resources.get_distribution('bfps') _dist = pkg_resources.get_distribution('bfps')
# Normalize case for Windows systems dist_loc = os.path.realpath(_dist.location)
dist_loc = os.path.normcase(os.path.realpath(_dist.location))
here = os.path.normcase(__file__) here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'bfps')):
# not installed, but there is another version that *is*
header_dir = os.path.join(os.path.dirname(here), 'cpp')
lib_dir = os.path.dirname(here)
raise pkg_resources.DistributionNotFound
header_dir = os.path.join(os.path.join(dist_loc, 'bfps'), 'cpp') header_dir = os.path.join(os.path.join(dist_loc, 'bfps'), 'cpp')
lib_dir = os.path.join(dist_loc, 'bfps') lib_dir = os.path.join(dist_loc, 'bfps')
......
...@@ -83,10 +83,9 @@ src_file_list = ['field_descriptor', ...@@ -83,10 +83,9 @@ src_file_list = ['field_descriptor',
header_list = ['cpp/base.hpp'] + ['cpp/' + fname + '.hpp' for fname in src_file_list] header_list = ['cpp/base.hpp'] + ['cpp/' + fname + '.hpp' for fname in src_file_list]
#with open('MANIFEST.in', 'w') as manifest_in_file: with open('MANIFEST.in', 'w') as manifest_in_file:
# manifest_in_file.write('include libbfps.a\n') for fname in ['bfps/cpp/' + fname + '.cpp' for fname in src_file_list] + header_list:
# for fname in ['bfps/cpp/' + fname + '.cpp' for fname in src_file_list] + header_list: manifest_in_file.write('include {0}\n'.format(fname))
# manifest_in_file.write('include {0}\n'.format(fname))
libraries = ['fftw3_mpi', libraries = ['fftw3_mpi',
'fftw3', 'fftw3',
......
...@@ -6,6 +6,7 @@ sitepackages = True ...@@ -6,6 +6,7 @@ sitepackages = True
whitelist_externals = whitelist_externals =
echo echo
cp cp
g++
passenv = LD_LIBRARY_PATH passenv = LD_LIBRARY_PATH
changedir = changedir =
{envtmpdir} {envtmpdir}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment