Skip to content

Commit 318e9a7

Browse files
committed
update scons test and documentations
1 parent a807844 commit 318e9a7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ An alternative way of installing pyobjcryst is to use the SCons tool,
8787
which can speed up the process by compiling C++ files in several
8888
parallel jobs (-j4)::
8989

90-
scons -j4 dev
90+
conda install scons
91+
conda install --file requirements/conda.txt
92+
scons -j4 dev
9193

92-
See ``scons -h`` for description of build targets and options.
94+
See ``scons -h`` for description of build targets and options. Need to install test dependencies
95+
(``requirements/test.txt``) to run SCons test mode.
9396

9497
Optional graphical dependencies for jupyter notebooks
9598
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/extensions/SConscript

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@ env['ENV']['PYTHONPATH'] = Dir('#').abspath + os.sep + 'src'
3939
test = env.Alias(
4040
'test',
4141
['dev'],
42-
Action('python -m pyobjcryst.tests.run')
42+
Action('pytest')
4343
)
4444
AlwaysBuild(test)
4545

4646
# default targets:
4747
Default(module_nodes)
4848

4949
# clean up the build artifacts
50-
Clean(None, ['.sconsign.dblite', 'config.log'])
51-
Clean(None, Dir('.sconf_temp'))
52-
Clean(None, Dir('build'))
53-
Clean(None, installed)
50+
Clean(module_nodes, installed)
5451

5552
# vim: ft=python

0 commit comments

Comments
 (0)