0
Python 3.9
Setuptools 58.1.0

I have a .so file that ive built out of a .pyx file via cython and I would like to include this into my package

the location of .so is the below

util/helper/foo.so

So i wrote this script that will call setuptools setup explicitly (instead of setup.py way)

from setuptools import setup, Extension
kwargs = {"name": "foo",
                  "author": "",
                  "version": "1.0",
                  "ext_modules": Extension(name='util/helper/foo', sources=[]),}

setup(**kwargs)

It builds the egg fine until i run into this issue

running build_ext
error: [Errno 2] No such file or directory: 'util/helper/foo.cpython-39-x86_64-linux-gnu.so'

why is it looking for util/helper/foo.cpython-39-x86_64-linux-gnu.so instead of util/helper/foo.so

how can I force setup() to look for util/helper/foo.so instead?
I very much prefer to keep on building .so as foo.so

sinoroc
  • 18,409
  • 2
  • 39
  • 70
ealeon
  • 12,074
  • 24
  • 92
  • 173

0 Answers0