Skip to content

Commit

Permalink
Merge branch 'matko' into 'master'
Browse files Browse the repository at this point in the history
Make package pip installable

See merge request computational-psychology/stimuli!2
  • Loading branch information
matko.matic committed Apr 26, 2021
2 parents 6a63987 + 1d2df0a commit 8eada0a
Show file tree
Hide file tree
Showing 63 changed files with 678 additions and 625 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -57,3 +57,5 @@ docs/_build/

# PyBuilder
target/

.vscode/
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -26,11 +26,12 @@ First clone the repository via
git clone https://github.com/computational-psychology/stimuli.git
```

Then run `python setup.py install` at the root of the repository.

Then run `pip install .` at the root of the repository.
The repository may then be removed again.

To update to a newer version, run `python setup.py install --force`.
To install in developer/editable mode: `pip install -e .` at the root directory.
This makes changes to files immediately usable,
rather than having to reinstall the package after every change.

## Importing
To use in your own code, import the modules. See READMEs in src/ for example usages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@
author_email='guillermo.aguilar@mail.tu-berlin.de',
license='GPL2',
url='https://github.com/computational-psychology/stimuli',
package_dir={'stimuli': 'src'},
package_dir={'stimuli': 'stimuli'},
packages=(
'stimuli',
'stimuli.lightness',
Expand Down
2 changes: 0 additions & 2 deletions src/illusions/__init__.py

This file was deleted.

0 comments on commit 8eada0a

Please sign in to comment.