Skip to content

Commit

Permalink
Add installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ramajoballester committed Mar 19, 2024
1 parent 9a6978a commit 858d2dc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python -m build ./ --sdist
python -m build ./ --wheel
twine check ./dist/*
python -m twine upload ./dist/*
21 changes: 19 additions & 2 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,26 @@ Automatic installation

To install the package, you can use the following command:

.. code-block:: bash
.. tabs::

.. group-tab:: Linux
Open a terminal and run the following command:

.. code-block:: bash
sudo apt update && sudo apt install -y wget ffmpeg
wget "https://github.com/ramajoballester/pyaligner/releases/latest/download/PyAligner-$(uname)-$(uname -m).sh"
bash PyAligner-$(uname)-$(uname -m).sh
.. group-tab:: MacOS
Open a terminal and run the following command:

.. code-block:: bash
To be defined
brew update && brew install -y wget ffmpeg
wget "https://github.com/ramajoballester/pyaligner/releases/latest/download/PyAligner-$(uname)-$(uname -m).sh"
bash PyAligner-$(uname)-$(uname -m).sh
Manual installation
Expand Down
8 changes: 8 additions & 0 deletions install/PyAligner-Linux-x86_64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# sudo apt update
# sudo apt install -y wget ffmpeg

wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

mamba create -n pyaligner_env -c conda-forge python montreal-forced-aligner pyqt
mamba init
8 changes: 8 additions & 0 deletions install/PyAligner-MacOSX-x86_64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# brew update
# brew install -y wget ffmpeg

wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

mamba create -n pyaligner_env -c conda-forge python montreal-forced-aligner pyqt
mamba init
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dev = [
'ipykernel',
# 'pyqt',
'twine',
'build',
]

docs = [
Expand Down

0 comments on commit 858d2dc

Please sign in to comment.