distutils
How may I override the compiler (GCC) flags that setup.py uses by default?
I understand that setup.py uses the same CFLAGS that were used to build Python. I have a single C extension of ours that is segfaulting. I need to build it without -O2 because -O2 is optimizing out so[详细]
2023-03-25 04:26 分类:问答Install mixture of extension module. pure python module and shared libraries with distutils
I am using cython for building an extension module. The module depends on an external shared library, which is found when the module is built. Further I have some pure Pyth开发者_StackOverflow中文版on[详细]
2023-03-25 03:14 分类:问答Automatic version number both in setup.py (setuptools) AND source code?
SITUATION: I have a python library, which is controlled by git, and bundled with distutils/setuptools. And I want to automatically generate version number based on git tags, both for setup.py sdist a[详细]
2023-03-21 23:53 分类:问答read file names from directory w/ python
I\'m开发者_高级运维 trying to make a pygame executable.I will use the following setup file: from distutils.core import setup[详细]
2023-03-19 20:57 分类:问答pip freeze captures the package name as if it was on python index site, but it is not. full path is needed
I installed a package from git hub: pip install -e git+http://github.com/un33k/django-uuslug.git#egg=django-uuslug[详细]
2023-03-19 11:51 分类:问答Python distutils with multiple versions of Visual C++
I have both Visual C++ 9.0 and 10.0 installed. I have a Python extension which uses swig. The setup.py script looks something like the following:[详细]
2023-03-19 03:22 分类:问答How to create namespace packages in Python?
I have a Python 3 project with the following structure: project/ +--root/ +--__init__.py +--sub/ +--__init__.py[详细]
2023-03-17 15:09 分类:问答How do I get setup.py test to use a specific fortran compiler?
I am trying to test a package that includes some f90 files. If I build or install and specify the fortran compiler, it works fine. However, when I try to test I get the following error:[详细]
2023-03-16 10:37 分类:问答How do you make python recognize read a precompiled shared file?
I have a package I\'ve created in C++ and, have already compiled it into a shared library. When I link against it with my own main function, I can initialize the package by calling the initialization[详细]
2023-03-15 11:47 分类:问答Install Python extension to specific location
My project mix pure Python code, and Cython extensions for optimization and for linking with C libraries. I have one source tree for my Python project, and one for Cython and C code. My Cython extensi[详细]
2023-03-13 17:37 分类:问答