Horje
Introduction to distutils in python Code Example
Introduction to distutils in python
include fontypython fp README COPYING
recursive-include fontypythonmodules/pofiles *
recursive-include fontypythonmodules/things *
recursive-include fontypythonmodules/locale *
recursive-include fontypythonmodules/help *
Introduction to distutils in python
##This will work in development on a relative folder basis
##It will then work when installed in site-packages on a target system
##where the runner script is in /usr/bin (or wherever)
##
##So, you don't need anything special - no fancy path tricks.

import package.module

package.module.start ()
Introduction to distutils in python
cd dist
tar xzf appname-100.tar.gz 
cd appname-100
sudo python setup.py install
password:######
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/bin/runner to 755
Introduction to distutils in python
distutils:$ python setup.py sdist upload
Introduction to distutils in python
include runner README
recursive-include package/things *
Introduction to distutils in python
distutils:$ runner
module is running
/usr/lib/python2.4/site-packages/package
My various data files and so on are:
['cross.png', 'fplogo.png', 'tick.png']
Introduction to distutils in python
distutils:$ python setup.py sdist upload --sign
Introduction to distutils in python
top
|-- package
|   |-- __init__.py
|   |-- module.py
|   `-- things
|       |-- cross.png
|       |-- fplogo.png
|       `-- tick.png
|-- runner
|-- MANIFEST.in
|-- README
`-- setup.py
Introduction to distutils in python
python setup.py sdist
Introduction to distutils in python
classifiers=[
      'Development Status :: 4 - Beta',
      'Environment :: X11 Applications :: GTK',
      'Intended Audience :: End Users/Desktop',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: GNU General Public License (GPL)',
      'Operating System :: POSIX :: Linux',
      'Programming Language :: Python',
      'Topic :: Desktop Environment',
      'Topic :: Text Processing :: Fonts'
      ]




Python

Related
stop animation matplotlib Code Example stop animation matplotlib Code Example
Multiple sub in single regex. Code Example Multiple sub in single regex. Code Example
python namedtuple typename Code Example python namedtuple typename Code Example
appending hdf5 files Code Example appending hdf5 files Code Example
A way to extract from a DateTime value data without seconds Code Example A way to extract from a DateTime value data without seconds Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
18