Skip to content

Commit a0f4b27

Browse files
committed
Meson+pip
1 parent e910feb commit a0f4b27

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ the configure script:
109109

110110
After this, you can run the `configure` script as described previously.
111111

112+
#### Meson
113+
114+
For the developers who prefer this, it is alternatively possible to compile the C++ components with Meson and then install ShoRAH with pip in development mode using :
115+
116+
```bash
117+
mkdir -p build
118+
cd build
119+
meson ../
120+
ninja
121+
cd ..
122+
pip3 install -e .
123+
```
112124

113125
#### Windows users
114126
Since Windows 10, Microsoft provides the

meson.build

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
project(
22
'shorah',
33
'cpp',
4-
version : '1.99.1',
4+
version : run_command('build-aux/git-version-gen', '@0@/.tarball-version'.format(meson.source_root()), check : true).stdout().strip(),
55
default_options : [
66
'buildtype=release',
77
'cpp_std=c++11',
88
'warning_level=3',
99
'b_ndebug=if-release'],
1010
license : 'GPL-2+',
11-
meson_version : '>= 0.46.0')
11+
meson_version : '>= 0.49.0')
12+
13+
meson.add_dist_script('sh', '-c', 'echo @0@>"$MESON_DIST_ROOT/.tarball-version"'.format(meson.project_version()))
1214

1315
# info
1416
as_version = meson.project_version()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def run_tests(self):
7070
name='ShoRAH',
7171
description='SHOrt Reads Assembly into Haplotypes',
7272
url='http://github.com/cbg-ethz/shorah',
73-
packages=find_packages('src'), # include all packages under src
73+
packages=find_packages(where='src'), # include all packages under src
7474
package_dir={'': 'src'}, # tell setuptools packages are under src
7575
entry_points={
7676
'console_scripts': ['shorah = shorah.cli:main']

src/shorah/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)