cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11.95k stars 2.87k forks source link

Specify installation for Linux, Mac OSX, and WIndows #431

Open pydanny opened 8 years ago

pydanny commented 8 years ago

We don't differentiate well between operation systems. http://cookiecutter-django.readthedocs.org/en/latest/developing-locally.html is for Linux, but doesn't do much to help Mac OSX or Windows users.

bobstrecansky commented 8 years ago

Alongside this, probably want to define a requirements.rpm and requirements.brew for install_os_dependencies.sh

crdoconnor commented 8 years ago

If you do:

pip install unixpackage

and then:

unixpackage install -r requirements.apt

It should find and try to install the relevant equivalent packages on RPM systems, Arch and Brew.

This doesn't help Windows users though.

burhan commented 8 years ago

I can see three ways to improve our support for Windows:

  1. Create our own chocolatey package to add those binaries/libraries that need separate installers for Windows. Right now I can only think of psycopg but this will future proof us. Windows 10 has built-in support for external package repositories (and it integrates with chocolatey), and for Windows 7/8 users they can install chocolatey to download the package.
  2. Advocate the use of docker as our compatibility later for Windows. This has its own challenges; in that docker is rapidly updating and especially on Windows a lot of things are still in early beta or can cause unexpected errors. Advantage to this approach is that it takes away a lot of the management that we have to do to support Windows; plus there are promising IDE integration options for docker like the work being done at Jetbrains.
  3. Complete the documentation - adding a FAQ section for Windows to cover most issues; and let the end user decide which way to move forward. I personally think this is the best way forward as we don't end up advocating one or other (less opinionated, more choice).

Thoughts?

jayfk commented 8 years ago
burhan commented 8 years ago

I have a fourth option:

  1. Encourage contributors to submit pull requests for links to a community supported fork for OS-specific flavors. I can see this being useful for other Linux distributions (and of course, Windows). If we do this we have to come up with some guidelines to ensure compatibility with the core version of the django cookiecutter.
rookiec14 commented 8 years ago

option 3

pydanny commented 6 years ago

Considering the growing support for Linux on Windows, does it make sense to take Windows off the list?

burhan commented 6 years ago

The WSL is still not installed or enabled by default and if you do not have admin access, or Windows Professional the option is not available to you.

I would caution against removing it from the list.

On Fri, Sep 22, 2017 at 12:53 AM Daniel Roy Greenfeld < notifications@github.com> wrote:

Considering the growing support for Linux on Windows, does it make sense to take Windows off the list?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pydanny/cookiecutter-django/issues/431#issuecomment-331292467, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkz6OWxm02wLwMymVR2KJu6LE6myfbCks5sktrJgaJpZM4GvPB_ .