Skip to content

Video editing with Python

fixed (?) pip-install

Zulko01b2bd9a53b1
diff --git a/README.rst b/README.rst
index 9adbb175..3c4edb68 100644
--- a/README.rst
+++ b/README.rst
@@ -36,7 +36,11 @@ Installation
**Method with pip:** if you have ``pip`` installed, just type this in a terminal (it will install ez_setup if you don't already have it) ::
- (sudo) pip install ez_setup moviepy
+ (sudo) pip install moviepy
+
+If you have neither ``setuptools`` nor ``ez_setup`` installed the command above will fail, is this case type this before installing: ::
+
+ (sudo) pip install ez_setup
**Method by hand:** download the sources, either on PyPI_ or (if you want the development version) on Github_, unzip everything in one folder, open a terminal and type ::
diff --git a/docs/getting_started/efficient_moviepy.rst b/docs/getting_started/efficient_moviepy.rst
index 89a23a40..d05151e6 100644
--- a/docs/getting_started/efficient_moviepy.rst
+++ b/docs/getting_started/efficient_moviepy.rst
@@ -3,7 +3,7 @@
How to be efficient with MoviePy
================================
-This section gathers tips and tricks to make the most of what is already known worldwide as *the MoviePy experience*.
+This section gathers tips and tricks to help you make the most of what is already known worldwide as *the MoviePy experience*.
The best way to start with MoviePy is to use it with the IPython Notebook: it makes it easier to preview clips (as we will see in this section), has autocompletion, and can display the documentation for the different methods of the library.
diff --git a/docs/install.rst b/docs/install.rst
index c7b258a3..131b39de 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -10,6 +10,10 @@ Installation
(sudo) pip install moviepy
+If you have neither ``setuptools`` nor ``ez_setup`` installed the command above will fail, is this case type this before installing: ::
+
+ (sudo) pip install ez_setup
+
**Method by hand:** download the sources, either on PyPI_ or (if you want the development version) on Github_, unzip everything in one folder, open a terminal and type ::
(sudo) python setup.py install
diff --git a/moviepy/version.py b/moviepy/version.py
index d1b21f88..b2e1e29a 100644
--- a/moviepy/version.py
+++ b/moviepy/version.py
@@ -1 +1 @@
-__version__ = "0.2.1.9.04"
+__version__ = "0.2.1.9.05"
diff --git a/setup.py b/setup.py
index d85b97e4..cb700a0d 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,24 @@
#!/usr/bin/env python
-import ez_setup
-ez_setup.use_setuptools()
+# This will try to import setuptools. If not here, it will reach for the embedded
+# ez_setup (or the ez_setup package). If none, it fails with a message
+try:
+ from setuptools import setup
+except ImportError:
+ try:
+ import ez_setup
+ ez_setup.use_setuptools()
+ except ImportError:
+ raise ImportError("Vapory could not be installed, probably because"
+ " neither setuptools nor ez_setup are installed on this computer."
+ "\nInstall ez_setup ([sudo] pip install ez_setup) and try again.")
-exec(open('moviepy/version.py').read()) # loads __version__
+from setuptools import setup, find_packages
from setuptools import setup, find_packages
+exec(open('moviepy/version.py').read()) # loads __version__
+
setup(name='moviepy',
version=__version__,
author='Zulko 2014',