parent
0798a8892a
commit
100f626551
@ -58,7 +58,7 @@ USER www-data
|
|||||||
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
||||||
|
|
||||||
RUN ./bootstrap.sh
|
RUN ./bootstrap.sh
|
||||||
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
|
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --without-python3
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
RUN ./bin/pip install scikits.audiolab
|
RUN ./bin/pip install scikits.audiolab
|
||||||
|
@ -139,7 +139,7 @@ USER www-data
|
|||||||
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
||||||
|
|
||||||
RUN ./bootstrap.sh
|
RUN ./bootstrap.sh
|
||||||
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --with-python3
|
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
# Only supported on Python 2.
|
# Only supported on Python 2.
|
||||||
|
@ -73,7 +73,7 @@ USER www-data
|
|||||||
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master .
|
||||||
|
|
||||||
RUN ./bootstrap.sh
|
RUN ./bootstrap.sh
|
||||||
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure --with-python3
|
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
# RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
|
# RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
|
||||||
|
@ -87,7 +87,7 @@ dnl----
|
|||||||
AC_ARG_WITH([python3],
|
AC_ARG_WITH([python3],
|
||||||
[AS_HELP_STRING([--with-python3], [Set up to use Python 3 by default.])],
|
[AS_HELP_STRING([--with-python3], [Set up to use Python 3 by default.])],
|
||||||
[],
|
[],
|
||||||
[with_python3=no])
|
[with_python3=yes])
|
||||||
AS_IF([test "x$with_python3" != xno],
|
AS_IF([test "x$with_python3" != xno],
|
||||||
AC_CHECK_PROGS([PYTHON], [python3], [none])
|
AC_CHECK_PROGS([PYTHON], [python3], [none])
|
||||||
AC_SUBST([USE_PYTHON3], [true])
|
AC_SUBST([USE_PYTHON3], [true])
|
||||||
|
@ -58,7 +58,7 @@ Dependencies
|
|||||||
MediaGoblin has the following core dependencies:
|
MediaGoblin has the following core dependencies:
|
||||||
|
|
||||||
- Python 2.7 or Python 3.4+
|
- Python 2.7 or Python 3.4+
|
||||||
- `python-lxml <http://lxml.de/>`_
|
- `python3-lxml <http://lxml.de/>`_
|
||||||
- `git <http://git-scm.com/>`_
|
- `git <http://git-scm.com/>`_
|
||||||
- `SQLite <http://www.sqlite.org/>`_/`PostgreSQL <http://www.postgresql.org/>`_
|
- `SQLite <http://www.sqlite.org/>`_/`PostgreSQL <http://www.postgresql.org/>`_
|
||||||
- `Python Imaging Library <http://www.pythonware.com/products/pil/>`_ (PIL)
|
- `Python Imaging Library <http://www.pythonware.com/products/pil/>`_ (PIL)
|
||||||
@ -68,19 +68,19 @@ MediaGoblin has the following core dependencies:
|
|||||||
On a DEB-based system (e.g Debian, gNewSense, Trisquel, \*buntu, and
|
On a DEB-based system (e.g Debian, gNewSense, Trisquel, \*buntu, and
|
||||||
derivatives) issue the following command::
|
derivatives) issue the following command::
|
||||||
|
|
||||||
sudo apt-get install git-core python python-dev python-lxml \
|
sudo apt-get install git-core python python3-dev python3-lxml \
|
||||||
python-imaging python-virtualenv npm nodejs-legacy automake \
|
python3-imaging python3-virtualenv npm nodejs-legacy automake \
|
||||||
nginx rabbitmq-server
|
nginx rabbitmq-server
|
||||||
|
|
||||||
On a RPM-based system (e.g. Fedora, RedHat, and derivatives) issue the
|
On a RPM-based system (e.g. Fedora, RedHat, and derivatives) issue the
|
||||||
following command::
|
following command::
|
||||||
|
|
||||||
sudo yum install python-paste-deploy python-paste-script \
|
sudo yum install python3-paste-deploy python3-paste-script \
|
||||||
git-core python python-devel python-lxml python-imaging \
|
git-core python python3-devel python3-lxml python3-imaging \
|
||||||
python-virtualenv npm automake nginx rabbitmq-server
|
python3-virtualenv npm automake nginx rabbitmq-server
|
||||||
|
|
||||||
(Note: MediaGoblin now officially supports Python 3. You may instead
|
(Note: MediaGoblin now uses Python 3 by default. To use Python 2, you may instead
|
||||||
substitute from "python" to "python3" for most package names in the
|
substitute from "python3" to "python" for most package names in the
|
||||||
Debian instructions and this should cover dependency installation.
|
Debian instructions and this should cover dependency installation.
|
||||||
These instructions have not yet been tested on Fedora.)
|
These instructions have not yet been tested on Fedora.)
|
||||||
|
|
||||||
@ -103,11 +103,11 @@ Configure PostgreSQL
|
|||||||
|
|
||||||
These are the packages needed for Debian Jessie (stable)::
|
These are the packages needed for Debian Jessie (stable)::
|
||||||
|
|
||||||
sudo apt-get install postgresql postgresql-client python-psycopg2
|
sudo apt-get install postgresql postgresql-client python3-psycopg2
|
||||||
|
|
||||||
These are the packages needed for an RPM-based system::
|
These are the packages needed for an RPM-based system::
|
||||||
|
|
||||||
sudo yum install postgresql postgresql-server python-psycopg2
|
sudo yum install postgresql postgresql-server python3-psycopg2
|
||||||
|
|
||||||
An rpm-based system also requires that you initialize and start the
|
An rpm-based system also requires that you initialize and start the
|
||||||
PostgreSQL database with a few commands. The following commands are
|
PostgreSQL database with a few commands. The following commands are
|
||||||
@ -256,8 +256,8 @@ Set up the hacking environment::
|
|||||||
|
|
||||||
$ ./bootstrap.sh && ./configure && make
|
$ ./bootstrap.sh && ./configure && make
|
||||||
|
|
||||||
(Note that if you'd prefer to run MediaGoblin with Python 3, pass in
|
(Note that if you'd prefer to run MediaGoblin with Python 2, pass in
|
||||||
`--with-python3` to the `./configure` command.)
|
`--without-python3` to the `./configure` command.)
|
||||||
|
|
||||||
Create and set the proper permissions on the ``user_dev`` directory.
|
Create and set the proper permissions on the ``user_dev`` directory.
|
||||||
This directory will be used to store uploaded media files::
|
This directory will be used to store uploaded media files::
|
||||||
|
@ -84,7 +84,7 @@ good/bad/ugly). On Debianoid systems
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo apt-get install python-gi python3-gi \
|
sudo apt-get install python3-gi \
|
||||||
gstreamer1.0-tools \
|
gstreamer1.0-tools \
|
||||||
gir1.2-gstreamer-1.0 \
|
gir1.2-gstreamer-1.0 \
|
||||||
gir1.2-gst-plugins-base-1.0 \
|
gir1.2-gst-plugins-base-1.0 \
|
||||||
@ -92,7 +92,7 @@ good/bad/ugly). On Debianoid systems
|
|||||||
gstreamer1.0-plugins-ugly \
|
gstreamer1.0-plugins-ugly \
|
||||||
gstreamer1.0-plugins-bad \
|
gstreamer1.0-plugins-bad \
|
||||||
gstreamer1.0-libav \
|
gstreamer1.0-libav \
|
||||||
python-gst-1.0
|
python3-gst-1.0
|
||||||
|
|
||||||
|
|
||||||
Add ``[[mediagoblin.media_types.video]]`` under the ``[plugins]`` section in
|
Add ``[[mediagoblin.media_types.video]]`` under the ``[plugins]`` section in
|
||||||
@ -123,8 +123,8 @@ as whatever GStreamer plugins you want, good/bad/ugly), SciPy and NumPy are
|
|||||||
also needed for the audio spectrograms.
|
also needed for the audio spectrograms.
|
||||||
To install these on Debianoid systems, run::
|
To install these on Debianoid systems, run::
|
||||||
|
|
||||||
sudo apt-get install python-gst-1.0 gstreamer1.0-plugins-{base,bad,good,ugly} \
|
sudo apt-get install python3-gst-1.0 gstreamer1.0-plugins-{base,bad,good,ugly} \
|
||||||
gstreamer1.0-libav python-numpy python-scipy libsndfile1-dev libasound2-dev
|
gstreamer1.0-libav python3-numpy python3-scipy libsndfile1-dev libasound2-dev
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
scikits.audiolab will display a warning every time it's imported if you do
|
scikits.audiolab will display a warning every time it's imported if you do
|
||||||
@ -160,7 +160,7 @@ To enable raw image you need to install pyexiv2. On Debianoid systems
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo apt-get install python-pyexiv2
|
sudo apt-get install python3-pyexiv2
|
||||||
|
|
||||||
Add ``[[mediagoblin.media_types.raw_image]]`` under the ``[plugins]``
|
Add ``[[mediagoblin.media_types.raw_image]]`` under the ``[plugins]``
|
||||||
section in your ``mediagoblin.ini`` and restart MediaGoblin.
|
section in your ``mediagoblin.ini`` and restart MediaGoblin.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user