[Distutils] Packaging of files, which aren't in the package root folder
Lukas Hetzenecker
LuHe at gmx.at
Sun Dec 13 19:42:10 CET 2009
Hello,
thanks for your reply.
I added these files to MANIFEST.in but they are only in the tarball (generated
using python setup.py sdist), and not in the installation directory.
I attached the tree of my source (source_tree), my setup.py script, my
MANIFEST.in and the tree of the installation directory.
Thanks,
Lukas
Am Sonntag 13 Dezember 2009 15:27:29 schrieben Sie:
> On Sun, Dec 13, 2009 at 3:08 PM, Lukas Hetzenecker <LuHe at gmx.at> wrote:
> > Hello,
> >
> > i have the following folder structure:
>
> Hi Lukas, your project layout is a bit exotic but looks fine for what
> you want to do.
>
> You just need to add an extra file called MANIFEST.in alongside
> setup.py, with this content:
>
> recursive-include application *.py
> include application/INSTALL
> include application/Changelog
> include application/LICENCE
>
> This is a template file, that'll make sure package_data files are
> included in the archive then installed.
>
> Notice that this has changed in version 2.7: All the files that match
> package_data will be added to the MANIFEST file if no template is
> provided.
>
> IOW this MANIFEST.in won't be necessary anymore in your case in the future
>
> see http://docs.python.org/dev/distutils/sourcedist.html#manifest
>
> Tarek
>
-------------- next part --------------
root at laptop /usr/lib/python2.6/site-packages # tree --dirsfirst series60_remote |grep -v ".svn" |grep -v ".png" |grep -v ".pyc" |grep -v ".ui" |grep -v ".svg" > directory_tree
series60_remote
??? devices
? ??? __init__.py
? ??? null.py
? ??? series60.py
? ??? status_numbers.py
??? lib
? ??? classes.py
? ??? database.py
? ??? dbusobject.py
? ??? delegate_movie.py
? ??? device.py
? ??? favorites.py
? ??? helper.py
? ??? import_messages.py
? ??? __init__.py
? ??? log.py
? ??? obex_completer.py
? ??? obex_handler.py
? ??? obex_iconprovider.py
? ??? obex_items.py
? ??? obex_model.py
? ??? obex_scheduler.py
? ??? obex_wrapper.py
? ??? settings.py
? ??? __init__.py
? ??? resource_rc.py
??? widget
? ??? ContactCanvas.py
? ??? Delegate.py
? ??? ImageButton.py
? ??? __init__.py
? ??? MessageTextEdit.py
? ??? ObexView.py
? ??? ObexWidget.py
? ??? PixmapRegionSelectorWidget.py
? ??? Popup.py
? ??? SearchLineEdit.py
? ??? StatisticCanvas.py
??? window
? ??? about.py
? ??? chat.py
? ??? contacts_edit.py
? ??? favorites.py
? ??? history.py
? ??? import_messages.py
? ??? __init__.py
? ??? log.py
? ??? mainwindow.py
? ??? message_queue.py
? ??? pixmap_region_selector_dialog.py
? ??? popups.py
? ??? settings.py
? ??? statistics.py
? ??? systemtrayicon.py
? ??? wizard.py
??? __init__.py
??? mkpyqt.py
??? series60_remote.py
5 directories, 158 files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: text/x-python
Size: 538 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20091213/28c7aa5a/attachment.py>
-------------- next part --------------
lukas at laptop /home/lukas/Projekte/series60-remote/trunk (r390) # tree --dirsfirst |grep -v ".svn" |grep -v ".png" |grep -v ".pyc" |grep -v ".ui" |grep -v ".sv > directory_tree
.
??? lib
??? mobile
? ??? create_package
? ??? __init__.py
? ??? mobile.py
? ??? PythonForS60_1_4_5_3rdEd.sis
? ??? series60-remote.sis
??? pc
? ??? devices
? ? ??? __init__.py
? ? ??? null.py
? ? ??? series60.py
? ? ??? status_numbers.py
? ??? lang
? ? ??? app_de.qm
? ? ??? app_de.ts
? ? ??? qt_de.qm
? ??? lib
? ? ??? classes.py
? ? ??? database.py
? ? ??? dbusobject.py
? ? ??? delegate_movie.py
? ? ??? device.py
? ? ??? favorites.py
? ? ??? helper.py
? ? ??? import_messages.py
? ? ??? __init__.py
? ? ??? log.py
? ? ??? obex_completer.py
? ? ??? obex_handler.py
? ? ??? obex_iconprovider.py
? ? ??? obex_items.py
? ? ??? obex_model.py
? ? ??? obex_scheduler.py
? ? ??? obex_wrapper.py
? ? ??? settings.py
? ??? pics
? ? ??? hicolor
? ? ? ??? scalable
? ? ??? other
? ? ??? oxygen
? ? ? ??? scalable
? ? ? ? ??? actions
? ? ? ? ??? apps
? ? ? ? ??? devices
? ? ? ? ??? mimetypes
? ? ? ? ??? places
? ? ? ? ??? status
? ? ? ??? LICENSE
? ? ? ??? README
? ? ??? oxygen-icon-list
? ? ??? phone.ico
? ? ??? update-oxygen.py
? ? ??? src
? ? ? ??? resource.qrc
? ? ??? __init__.py
? ? ??? resource_rc.py
? ??? widget
? ? ??? ContactCanvas.py
? ? ??? Delegate.py
? ? ??? ImageButton.py
? ? ??? __init__.py
? ? ??? MessageTextEdit.py
? ? ??? ObexView.py
? ? ??? ObexWidget.py
? ? ??? PixmapRegionSelectorWidget.py
? ? ??? Popup.py
? ? ??? SearchLineEdit.py
? ? ??? StatisticCanvas.py
? ??? window
? ? ??? about.py
? ? ??? chat.py
? ? ??? contacts_edit.py
? ? ??? favorites.py
? ? ??? history.py
? ? ??? import_messages.py
? ? ??? __init__.py
? ? ??? log.py
? ? ??? mainwindow.py
? ? ??? message_queue.py
? ? ??? pixmap_region_selector_dialog.py
? ? ??? popups.py
? ? ??? settings.py
? ? ??? statistics.py
? ? ??? systemtrayicon.py
? ? ??? wizard.py
? ??? generate-pro.sh
? ??? __init__.py
? ??? mkpyqt.py
? ??? send_to_mobile
? ??? series60-remote.coverage
? ??? series60-remote.pro
? ??? series60_remote.py
??? series60_remote.egg-info
? ??? dependency_links.txt
? ??? PKG-INFO
? ??? SOURCES.txt
? ??? top_level.txt
??? Changelog
??? directory_tree
??? HACKING
??? __init__.py
??? INSTALL
??? LICENSE
??? LICENSE.icons-oxygen
??? MANIFEST.in
??? README.icons-oxygen
??? series60-remote
??? series60-remote.e4p
??? setup.py
??? TODO
23 directories, 328 files
-------------- next part --------------
include INSTALL
include Changelog
include LICENSE
include LICENSE.icons-oxygen
include README.icons-oxygen
include TODO
include HACKING
More information about the Distutils-SIG
mailing list