Questions tagged [distribute]

Python distribute (Setuptools) module.

See http://pythonhosted.org/distribute/setuptools.html

228 questions
11
votes
1 answer

Packaging resources with setuptools/distribute

I'm developing an Python egg that has several .txt dependencies (they're templates used to generate files by the egg itself), and I'm struggling to get those dependencies copied to site-packages during setup.py install. According to the distribute…
c_harm
11
votes
8 answers

Distribute a application to the public so they can compile, without revealing the source

I have a proprietary application I would like to hand out to a few people for testing, except we do not want to reveal the source to them. The application is written in C++ for Linux. It links against readily available packages on the Fedora/Ubuntu…
The Unknown
  • 19,224
  • 29
  • 77
  • 93
10
votes
3 answers

Use distribute/setuptools to create symlink (or run script)?

As part of my project's setup process, I need to symlink one of the packages to a specified directory so an init.d script can find it. Is there any way to add this as a post-processing command to setup()? I would even settle for creating another…
tdavis
  • 1,422
  • 2
  • 13
  • 12
9
votes
1 answer

Bundle and Deploy my nodejs program as an executable

I have a program written with node js that I want to bundle and distribute as "stand-alone" executable program. I want to run the program through cmd only with the the executable file name (without using npm run start or node file.js). i.e.…
SomoKRoceS
  • 2,934
  • 2
  • 19
  • 30
9
votes
1 answer

What's the best layout for a python command line application?

What is the right way (or I'll settle for a good way) to lay out a command line python application of moderate complexity? I've created a python project skeleton using paster, which gave me a few files to start…
Chris R
  • 17,546
  • 23
  • 105
  • 172
9
votes
3 answers

correct way to find scripts directory from setup.py in Python distutils?

I am distributing a package that has this structure: mymodule: mymodule/__init__.py mymodule/code.py scripts/script1.py scripts/script2.py The mymodule subdir of mymodule contains code, and the scripts subdir contains scripts that should be…
user248237
9
votes
1 answer

Upload Android app to google play step by step...?

1) I'm newbie to android distribution,my application is ready and now I want to distribute it through google play. But I can't find how to create certificate, because default debug certificate not use for distribute. can any one help me to create…
Manish Jain
  • 842
  • 1
  • 11
  • 29
8
votes
3 answers

easy_install with pypy while Python is installed

I installed PyPy while still having Python 2.7 on my system. How do I install and then use easy_install with PyPy? What is the syntax for distinguishing where I want to install to with easy_install? Should I set any environment variables for ease…
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
8
votes
3 answers

How can I correctly install multiple non-package Distribute/virtualenv/pip ecosystems on Ubuntu?

I am developing Python applications in Ubuntu. I want to setup a Distribute/virtualenv/pip ecosystem to manage my Python packages independently of any system Python packages (which I manage in Synaptic, or rather I let the system manage them for…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
8
votes
1 answer

pytorch - How to Save and load model from DistributedDataParallel learning

I'm new to the Pytorch DstributedDataParallel(), but I found that most of the tutorials save the local rank 0 model during training. Which means if I get 3 machine with 4 GPU on each of them, at the final I'll get 3 model that save from each…
Leowang
  • 2,359
  • 1
  • 9
  • 12
8
votes
2 answers

Installing my sdist from PyPI puts the files in unexpected places

My problem is that when I upload my Python package to PyPI, and then install it from there using pip, my app breaks because it installs my files into completely different locations than when I simply install the exact same package from a local…
Jonathan Hartley
  • 15,462
  • 9
  • 79
  • 80
8
votes
0 answers

Converting a setup.py Python project to binary with PyInstaller?

I have a project that is described using the standard setup.py setup, with some .py files that are intended to be executable (in the scripts= part of the package) and some .py files that are just libraries imported by these script files. Is there a…
user248237
8
votes
2 answers

How can I get the author name, project description etc from a Distribution object in pkg_resources?

pkg_resources api let's you get Distribution objects that represent egg distributions inside a directory. I can trivially get the project name and version of the distribution with dist.project_name and dist.version, however I'm lost on how I can get…
Te-jé Rodgers
  • 878
  • 1
  • 7
  • 20
7
votes
1 answer

Why are "sc.addFile" and "spark-submit --files" not distributing a local file to all workers?

I have a CSV file "test.csv" that I'm trying to have copied to all nodes on the cluster. I have a 4 node apache-spark 1.5.2 standalone cluster. There are 4 workers where one node also acts has master/driver as well as the worker. If I…
whisperstream
  • 1,897
  • 3
  • 20
  • 25
7
votes
1 answer

unattended install of python module .exe files

I'm looking for a way to install a bunch of python modules in .exe format like: ipython-0.13.1.py2-win32-PROPER.exe scipy-0.12.0b1.win32-py2.7.exe numpy-MKL-1.7.0.win32-py2.7.exe pywin32-218.win32-py2.7.exe I can install other modules by installing…
thkang
  • 11,215
  • 14
  • 67
  • 83
1 2
3
15 16