setup.py is a Python script required by libraries packaged and distributed with Distutils.
-1
votes
0answers
7 views
Explicitly setting the name of tar generated by python setup.py sdist
Is there some way by which we can set the name of tar to something I want generated by running the command
python setup.py sdist
Note : The name of the tar generated is a result of name in ...
0
votes
0answers
5 views
'easygui doesnt exist' python need help getting easygui working
My operating system is mac osx 10.6.8. I downloaded easygui and it has a setup file and everything in between and whenever I do (in the pyhton shell {3.3})import easygui it says
import easygui
...
0
votes
1answer
10 views
Specify header file location for a python setup.py installation
Basically the title says it all. I have a non-standard path for a library's header files and need to include it in the search path of a python installation script.
0
votes
1answer
13 views
Copy files to site-packages
I want to copy some files to the site-packages folder.
How to define in setup.py to copy files to the site-packes folder instead of a subfolder?
3
votes
0answers
26 views
Detect python package installation path from within setup.py
After installation, I would like to make soft-links to some of the configuration & data files created by installation.
How can I determine the location of a new package's installed from within ...
0
votes
1answer
17 views
Using cx_Freeze to Make First Program Into exe File
I made my first program (a gui calculator) in python using tkinter and am trying to use cx_freeze to turn it into an exe file. I'm really confused in how it works thought. I used cxfreeze quickstart ...
1
vote
1answer
23 views
Passing the library path as a command line argument to setup.py
modules = [Extension("MyLibrary",
src,
language = "c++",
extra_compile_args=["-fopenmp", "-std=c++11", "-DNOLOG4CXX"], # log4cxx is not ...
0
votes
1answer
14 views
automated build of python eggs
I have a directory containing N subdirectories each of which contains setup.py file. I want to write a python script that iterates through all subdirectories, issues python setup.py bdist_egg ...
0
votes
2answers
34 views
Python packaging with alternative setup.py
Is it possible to indicate that a specific file will become setup.py during the building process (e.g., python setup.py sdist) when using distutils (or distribute, or else) ?
I would like to be able ...
0
votes
0answers
17 views
How can I change setup.py make flags?
I was just building an application using python setup.py build and it seems it is only using one process.
I was wondering if there is any way to make it use more processes (like with make -j4 for ...
0
votes
1answer
47 views
Building NumPy on RedHat
I installed a local version of Python 2.7 in my home directory (Linux RedHat) under ~/opt using the --prefix flag.
More specifically, Python was placed in ~/home/opt/bin.
Now, I want to install ...
0
votes
0answers
19 views
How to get the installed package info (path, Entry module) of Python?
I want to get the installed packages that in my project have not be used.
Get the Installed packages (Include these dependences).
Traversal all imported modules that in my project and it couldn't ...
0
votes
1answer
51 views
Learn Python the hard way ex 46. Can't make a working module! How does setup.py work?
I did everything up until the quiz, but I can't get a module to work. I tried using a file with .py extension and doing from test_project import *, then tried using a method in the sum_stuff directory ...
2
votes
1answer
24 views
Proper Python packaging with external package dependencies
Let's suppose I have a project that depends on packages that should only be installed via the systems package manager (e.g. bindings to C libraries), so that install_requires is not working.
...
0
votes
0answers
46 views
Overriding or disabling ${python:Depends} at stdeb bdist_deb invocation
I am trying to package my Python software with stdeb:
python setup.py --command-packages=stdeb.command bdist_deb
which works fine.
Unfortunately, stdeb adds the variable ${python:Depends} to the ...
1
vote
1answer
74 views
Applying C compiler CFLAGS when building Python native extensions with setup.py
I am building an app for OSX, currently I am getting Illegal Instruction 4 error messages when running the application. One SOF question suggested adding -mmacosx-version-min=10.7 to the build ...
0
votes
1answer
116 views
Enthought Canopy 1.0 missing Python.h and other includes
I installed the Canopy distribution from Enthought for Mac OSX 64 bit and the include/python-2.7 folder is missing.
I couldn't find a package that includes this, has anyone had this problem and a ...
0
votes
1answer
39 views
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 ...
2
votes
0answers
28 views
Hooks in setuptools/distutils for post-install verification
I have a package that uses swig to generate some C++ interfaces to an external library, specifically udunits-2. On some systems, namely CentOS, the package will install successfully but when python ...
0
votes
1answer
55 views
What option do I need in setup.py to create the package in the right directory?
I am using setup.py to create a python package, which I want to install via pip. To correctly install the files under
lib/python2.7/site-packages/<package-name>
I used the following option ...
2
votes
1answer
53 views
How to specify explicit python packaging dependencies in setup.py? [duplicate]
I want to create a python package mycode, to be installed using pip (setup.py), which has a dependency on another package base. To incoporate this package dependency I follow the setup.py instructions ...
1
vote
0answers
91 views
Installing pure-python package as subpackage of another platform-dependent package
I have a pure-python package B and a platform-dependent package A (i.e. A contains C-extension module). I wish to install B as a subpackage of A, and the expected hierarchy is like,
...
3
votes
2answers
420 views
Difference between 'python setup.py install' and 'pip install'
So I have an external package I want to install into my python virtualenv in a tar file.
What is the best way to install the package?
I've discovered 2 ways that can do it:
1) Extract the tar file, ...
1
vote
0answers
24 views
Error when building a project
I cloned an organism project from github.
I tried to install it, but there is no one setup.py file and no documentation.
Could you advise me how to correctly build and install it under Ubuntu 12.04?
...
1
vote
1answer
46 views
Python 3.3 can't seem to find the decoder module in pocketsphinx library
I am getting the error AttributeError: 'module' object has no attribute 'Decoder'.
I am using the following code. Because there was no setup.py file included I moved the dlls and libraries into their ...
1
vote
1answer
77 views
Why `setup.py install` does not update the script file?
In the setup.py file, I write like this:
from distutils.core import setup
setup(
# skip a lot of information here..
scripts = ["chilin2/ChiLin2.py"],
)
I've setup my package successfully at ...
1
vote
1answer
35 views
How to skip installing data files if not running as root?
I have to deploy a Python project together with a script that is used via a command line interface. To help users, I also include a Bash completion file that is placed into /etc/bash_completion.d. ...
1
vote
1answer
159 views
PyPI upload stopped working and pip install fails
I submitted my first PyPI project last night and things are not working as expected (warning long post ahead)...
I originally uploaded the project, cvrfparse, via the commandline by doing:
% python ...
1
vote
1answer
70 views
How would I run a script file as part of the python setup.py install?
Question
I know how to use setup.py with setuptools to register a script. How would I run another script file (let say a make file) as part of the python setup.py install.
Background
I imagine that ...
-1
votes
1answer
64 views
Bootstrapping setup.py for Python 3 project [closed]
I've been trying to create a setup.py file for my python 3 project package, and it keeps and when I try to debug the setup with this code: c:\Python33\Python.exe setup.py sdist the cmd tells me that ...