#16671: 5th tutorial on turning Polls into a reusable app
-------------------------------+------------------------------------
     Reporter:  stumbles       |                    Owner:  ben@…
         Type:  New feature    |                   Status:  new
    Component:  Documentation  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by timo):

 With `packages=['polls']`:
 {{{
 sudo python django-polls-0.1/setup.py install
 running install
 Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
 /usr/bin/python -E -c pass
 TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support
 .pth files
 running bdist_egg
 running egg_info
 creating django_polls.egg-info
 writing django_polls.egg-info/PKG-INFO
 writing top-level names to django_polls.egg-info/top_level.txt
 writing dependency_links to django_polls.egg-info/dependency_links.txt
 writing manifest file 'django_polls.egg-info/SOURCES.txt'
 warning: manifest_maker: standard file 'setup.py' not found

 error: package directory 'polls' does not exist
 }}}

 It may be a path issue.  For example, if I rename `django-polls-0.1` to
 `django-polls` and then modify setup.py to `packages=['django-
 polls/polls']` it works; of course, this breaks it when running setup.py
 in the django-polls directory.

 Yes, if I add:
 {{{
 my_path = os.path.abspath(__file__)
 os.chdir(os.path.normpath(os.path.join(my_path, os.pardir)))
 }}}

 after `here=os.path.dirname...` in setup.py, I can run setup.py from any
 path. Fun, fun.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16671#comment:32>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to