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
3 answers

Compiling with distutils: /usr/lib is added as a file to compile

When compiling my extension I get a linker error saying /usr/bin/ld: /usr/lib: No such file: File format not recognized. I noticed /usr/lib is added as a file to the gcc command for some bizarre reason. Here are the commands and their output:…
rzetterberg
  • 10,146
  • 4
  • 44
  • 54
0
votes
1 answer

how to copy files to users home directory or current directory using distutils?

I am writing a python package (svnplot). I want to copy a shell script or batch files in users home directory or current directory, so that user can conveniently execute the commands in the package. Currently to execute svnplot command, user have…
Nitin Bhide
  • 1,685
  • 14
  • 15
0
votes
1 answer

script name in setup.py, why do I need file extension for script filename?

Related to my previous answer--I am very new to using setup.py to distribute python packages. According to python documentation, when passing script parameters to setup() in the setup.py file, it looks like you should use the script name without…
Steve Koch
  • 912
  • 8
  • 21
0
votes
1 answer

How to Make a PyMe (Python library) Run in Python 2.4 on Windows?

I want to run this library on Python 2.4 in Windows XP. I installed the pygpgme-0.8.1.win32.exe file but got this: >>> from pyme import core Traceback (most recent call last): File "", line 1, in ? File…
Greg
  • 45,306
  • 89
  • 231
  • 297
-1
votes
0 answers

C++ Extension for Python - Configure setup.py to require a specific MSVC version?

I've created a C++ extension -- specifically a project built in MS 2017 and Python 3.x and using pybind11 v2.11 -- following this tutorial:…
-1
votes
2 answers

distutils deprecation warning on ubuntu 22.04

I am deploying openstack using devstack but while deploying I encountered the following error: Error on exit /opt/stack/devstack/tools/worlddump.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.…
-1
votes
1 answer

Setuptools installing code from git submodules

I have a Python library I am trying to package for PyPi which contains several git submodules pointing to external repositories. Something like: MyLibrary - setup.py - MyLibrary - __init__.py - my_code1.py - my_code2.py - submodules …
genekogan
  • 671
  • 2
  • 10
  • 20
-1
votes
1 answer

py2exe missing distutils modules in virtualenv

I am trying to build executable file of my project(Python 2.7.5) but getting this below error when trying to run the executable. ERROR \ProjectPython\library.zip\distutils\__init__.py:14: UserWarning: The virtualenv distutils package at %s…
APobbati
  • 27
  • 5
-1
votes
1 answer

python 3.4 py2exe is not working or doing anything

I am trying to run a python file that I create as an executable or .exe in windows. I want to run this code in another computer that does not have nor need python, or pyserial or PIL or any other software, My code creates a Gui that do stuff I am…
-1
votes
2 answers

List of standard modules and packages in any python release

I have to release a Python application which works pretty well on python 2.7.3 (becuase it was developed on this version). It is one of the requirement that it should work with the standard python modules/packages which are available out of box…
Vivek Jha
  • 1,520
  • 3
  • 16
  • 26
-1
votes
1 answer

Python doesn't seem to remember installed packages

Alright, I have begun messing with Python packaging but I have encountered some problems. I have used python setup.py install to install my package, then distribute, and then pip. The packages work for a little while, but then Python eventually…
Nathan2055
  • 2,283
  • 9
  • 30
  • 49
-2
votes
1 answer

Accessing header files in a large C++ project by <...>

I have a project with two packages: Project |-- Package_A |-- exA.cpp |-- exA.h |-- Package_B |-- exB.cpp |-- exB.h In this project say, exB.cpp references to exA.h as #include However, I want to use SWIG to create a…
-2
votes
1 answer

PIP and setup.py with local requirements

I have a package that will be installed with PIP, let say it's names PackageA. PackageA has a one requirement, written out in requirements.txt to PackageB. Like: file://../../PackageB PackageB should require another PackageC, using setup.py or…
Serg Melikyan
  • 369
  • 1
  • 5
  • 7
1 2 3
74
75