Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
b5eef853
Kaydet (Commit)
b5eef853
authored
Kas 15, 2013
tarafından
Dražen Lučanin
Kaydeden (comit)
Tim Graham
Kas 19, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Recommended setuptools in the reuseable app tutorial.
setuptools has merged with distribute.
üst
ebfa508f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
reusable-apps.txt
docs/intro/reusable-apps.txt
+7
-13
No files found.
docs/intro/reusable-apps.txt
Dosyayı görüntüle @
b5eef853
...
...
@@ -100,14 +100,14 @@ Installing some prerequisites
=============================
The current state of Python packaging is a bit muddled with various tools. For
this tutorial, we're going to use
distribute_ to build our package. It's a
community-maintained fork of the older ``setuptools`` project
. We'll also be
this tutorial, we're going to use
setuptools_ to build our package. It's the
recommended packaging tool (merged with the ``distribute`` fork)
. We'll also be
using `pip`_ to install and uninstall it. You should install these
two packages now. If you need help, you can refer to :ref:`how to install
Django with pip<installing-official-release>`. You can install ``
distribute
``
Django with pip<installing-official-release>`. You can install ``
setuptools
``
the same way.
.. _
distribute: http://pypi.python.org/pypi/distribute
.. _
setuptools: https://pypi.python.org/pypi/setuptools
.. _pip: http://pypi.python.org/pypi/pip
Packaging your app
...
...
@@ -174,8 +174,8 @@ this. For a small app like polls, this process isn't too difficult.
5. Next we'll create a ``setup.py`` file which provides details about how to
build and install the app. A full explanation of this file is beyond the
scope of this tutorial, but the `
distribute
docs
<http://packages.python.org/
distribute
/setuptools.html>`_ have a good
scope of this tutorial, but the `
setuptools
docs
<http://packages.python.org/
setuptools
/setuptools.html>`_ have a good
explanation. Create a file ``django-polls/setup.py`` with the following
contents:
...
...
@@ -216,15 +216,9 @@ this. For a small app like polls, this process isn't too difficult.
],
)
.. admonition:: I thought you said we were going to use ``distribute``?
Distribute is a drop-in replacement for ``setuptools``. Even though we
appear to import from ``setuptools``, since we have ``distribute``
installed, it will override the import.
6. Only Python modules and packages are included in the package by default. To
include additional files, we'll need to create a ``MANIFEST.in`` file. The
distribute
docs referred to in the previous step discuss this file in more
setuptools
docs referred to in the previous step discuss this file in more
details. To include the templates, the ``README.rst`` and our ``LICENSE``
file, create a file ``django-polls/MANIFEST.in`` with the following
contents:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment