Questions tagged [distutils]

Distutils is the standard packaging system for Python modules and applications.

Distutils is the standard packaging system for Python modules and applications.

It has many high and low level features used to build, distribute and install Python projects. The official documentation page provides a good overview of its capabilities.

1123 questions
0
votes
2 answers

What's wrong with this `setup.py`?

I've been having problems withe getting setup.py to do the sdist thing correctly. I boiled it down to this. I have the following directory structure: my_package\ my_subpackage\ __init__.py deep_module.py __init__.py …
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
0
votes
1 answer

After setup.py, module must be explicitly imported from package

I've just made my first Python package with a setup script and am wondering if this behavior is normal. It's composed of one module containing a class I'd like to access. The project structure is like this: . | + -- __init__.py + --…
Daniel Lee
  • 2,030
  • 1
  • 23
  • 29
0
votes
2 answers

Reasons to use distutils when packaging C/Python project

I have an open source project containing both Python and C code. I'm wondering that is there any use for distutils for me, because I'm planning to do a ubuntu/debian package. The C code is not something that I could or want to use as Python…
user44556
  • 5,763
  • 5
  • 30
  • 27
0
votes
1 answer

finding distutils installation directories after installation

Distutils allow users to fine-tune installation paths with setup.py options such as --prefix, --install-purelib, --install-scripts, --install-data etc. But how do I find the value given to these options after installation? I've read some…
melissa_boiko
  • 153
  • 10
0
votes
1 answer

Pygame, distutils and fonts

I want to use a font file in my application (pygame requires an exact path to the font file) and I also want to package this application using distutils. The package must work independently of the platform. How to edit setup.py file to achieve this?…
Siekacz
  • 303
  • 1
  • 9
0
votes
1 answer

Is possible to write in Python script setup.py which is going to check if all required packages already installed - otherwise install them

I am making Tornado application(new to Python and Tornado so maybe question is stupid), and I am using additional Python packages like lepl, sqlalchemy and so on. Is possible to write in Python script setup.py which is going to check if all those…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
0
votes
1 answer

Why are files missing when I upload an egg to pypi?

Following the instructions on http://plone.org/documentation/kb/how-to-upload-your-package-to-plone.org/distuttils-commands-and-.pypirc, I uploaded an egg to pypi (adi.workingcopyflag).The created egg is missing some files (configuration.zcml and…
Ida
  • 3,994
  • 21
  • 40
0
votes
1 answer

How to structure code that distributes jobs to threads/nodes in Python?

I have python code that takes a bunch of tasks and distributes them to either different threads or different nodes on a cluster. I always end up writing a main script driver.py, that takes two command line arguments: --run-all and --run-task. The…
user248237
0
votes
1 answer

Is there a way to execute some task after a python package was installed according to some entry_point defined?

I want to know if there is a way to register some special entry_point and executes some task when the package is installed and has that entry_point defined, pretty much like console_scripts, I imagine is distutils the one that execute the tasks,but…
Jorge E. Cardona
  • 92,161
  • 3
  • 37
  • 44
0
votes
1 answer

packaging numpy/scipy and other Python packages with C application?

if I have an application that is written part in Python and has dependencies like numpy and scipy and part in C, how can I package it as an executable (e.g. for Linux) or as a source distribution in a way that does not depend on installing…
user248237
0
votes
0 answers

WARNING: the following files are not recognized by DistUtilsExtra.auto: when running setup.py

I'm trying to install the Quickshot application on Ubuntu 12.04/12.10, and am running into the following error whenever I run setup.py (it doesn't matter if I just run setup.py, setup.py check, setup.py build, or setup.py clean--I haven't tried…
0
votes
1 answer

Make Python conclusively read a package from a local directory

If I install all packages using python setup.py install --prefix=~/.local how can I make Python read my packages from there and not from the system wide version? I tried editing PYTHONPATH to put ~/.local/lib/python2.x/site-packages/ first, but it…
user248237
0
votes
1 answer

Installable distutils packages: How do I import package modules from command line scripts which are also part of the same package?

I've created a Python package that contains both pure modules and scripts, all within the same folder. The scripts need to make use of functionality within the modules so simply import them: import *module* I now wish to share this package with…
0
votes
1 answer

Build options to bdist

How do I specify build option: python setup.py build --fcompiler=gnu95 when I build rpm package: python setup.py bdist --format=rpm bdist seems to be building it all over again.
Adobe
  • 12,967
  • 10
  • 85
  • 126
0
votes
1 answer

Cython setup.py to install compiled extension

How do you write a setup.py to compile .pyx files in an arbitrary location and install the compiled code in another arbitrary location? For example dirA/spam.pyx to build/dirB/spam.so?
darkfeline
  • 9,404
  • 5
  • 31
  • 32
1 2 3
74
75