Print sysconfig location

This commit is contained in:
Daniel Wang 2018-07-19 18:34:28 -04:00
parent 24f9f44227
commit 9aa796422e
No known key found for this signature in database
GPG Key ID: 82968CE7F0EA634E
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,7 @@ before_install:
- gem install dropbox-deployment
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew bundle; alias python='python3'; fi
- eval "${MATRIX_EVAL}"
- python -c "import distutils.sysconfig as sysconfig; print(sysconfig.__file__)"
install:
- python setup.py build

View File

@ -58,7 +58,7 @@ from setuptools import setup, Extension, Distribution
import glob
import os
import platform
import sysconfig
import distutils.sysconfig as sysconfig
# ----------------------------------------------------------------------------------------
@ -85,6 +85,7 @@ class Config(object):
Returns the library name for a given module
The library name is usually decorated (i.e. "tl" -> "tl.cpython-35m-x86_64-linux-gnu.so").
"""
print
return mod + self.ext_suffix
def path_of(self, mod):