Skip to content

Commit

Permalink
better package management
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Sep 14, 2018
1 parent 3a0c73b commit c95ffb6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ If you get compiling errors, make sure that [pybind11](https://github.com/pybind

Note that a C++11-compiler has to be installed on the system before installing `tacoma`.

## Packages not installed during installing

The following packages are not installed during installation with `pip` since they're only required
for drawing and drawing is not essential. If you want to use `tacoma.drawing`, please install

matplotlib
networkx
python-louvain (community)



## Examples

Check out the [sandbox directory](https://github.com/benmaier/tacoma/tree/master/sandbox]).
Expand Down Expand Up @@ -88,3 +99,4 @@ visualize(temporal_network, frame_dt = 0.05)
```

![visualization example](https://github.com/benmaier/tacoma/raw/master/img/tacoma_example.gif)

16 changes: 16 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
import sys
import os

from mock import Mock as MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot', 'matplotlib.collections',
'lmfit', 'networkx', 'community',
'scipy.optimize', 'scipy.stats', 'scipy.special', 'scipy.integrate',
'numpy.polynomial', 'numpy.polynomial.polynomial', 'wget',
'lmfit',
]

sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down
5 changes: 0 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
pybind11==2.2.3
python-louvain==0.10
scipy==1.1.0
wget==3.2
numpy==1.14.5
lmfit==0.9.11
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def build_extensions(self):
'wget',
'numpy',
'scipy',
'python-louvain',
'lmfit',
],
include_package_data = True,
Expand Down

0 comments on commit c95ffb6

Please sign in to comment.