-
Notifications
You must be signed in to change notification settings - Fork 1k
Getting started on Windows
Please download the Windows installer from our website.
This documentation needs expanding.
If you want to help develop Mailpile by submitting pull requests that would be awesome. We need to create documentation about how to best setup a dev version of Mailpile in Windows.
Download links used to resolve dependencies:
python 2.7: <http://www.python.org/download/>
lxml: <http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml>
pyreadline: <https://pypi.python.org/pypi/pyreadline/2.0>
clone Mailpile, docs and plugins (submodules) to your machine git clone --recursive https://github.com/mailpile/Mailpile.git
This will clone the main development branch of Mailpile. If you want to clone a specific branch, specify it like so:
git clone --recursive -b branchname https://github.com/mailpile/Mailpile.git
A full list of existing branches is available on Github. Generally you'll want the highest version number available.
- Setup your virtual environment
cd Mailpile
virtualenv -p "C:\Python27\python.exe" --system-site-packages mp-virtualenv
"mp-virtualenv\Scripts\activate"
What is virtualenv?
Virtualenv is a tool which allows you to install the Mailpile's Python dependencies locally, without having to modify your operating system's global Python. This keeps things contained and makes it easier to un-install everything all at once. The downside, is you need to activate the virtual environment before you continue setting up Mailpile and always before you run Mailpile. That is what the source command does.
- Install the dependencies
Important: You must have activated the virtual Python environment in your current shell, as described in step 1 above. If you opened a new shell or a new terminal window, see section 5.1.
If you want to develop Mailpile:
python -m pip install -r requirements-dev.txt
For production or end-users, install everything that's listed in requirements.txt instead.
python -m pip install -r requirements.txt
Also see if pyreadline is installed else run the following command
python -m pip install pyreadline
If all is well, you should now be able to run Mailpile.
- Start Running Mailpile
You can now run Mailpile directly using the command:
./mp
There is a windows-equivalent to "mp" in the root directory. This should match the behavior of the existing "mp" assuming the user installed python 2.7 in the default installation location.