Skip to content

Commit

Permalink
Simplify the name of the lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHsiao1 committed Jun 26, 2021
1 parent 21c70ff commit 97731ed
Show file tree
Hide file tree
Showing 32 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/make_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ make_wheels(){
rm -rf $TEST_DIR
cd $LIB_DIR
ls $EXIV2_LIB_FILES | grep -v $EXIV2_LIB_FILE | xargs rm -f
find . -maxdepth 1 -type d -name 'py3.*' | grep -v py3.${version}-${plat_type} | xargs rm -rf
find . -maxdepth 1 -type d -name 'py3*' | grep -v py3${version}-${plat_type} | xargs rm -rf
cd $WORK_DIR
python3 setup.py bdist_wheel --python-tag cp3${version} --plat-name ${plat_name}
done
Expand Down
6 changes: 3 additions & 3 deletions pyexiv2/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
sys_name = platform.system() or 'Unknown'
if sys_name == 'Linux':
ctypes.CDLL(os.path.join(lib_dir, 'libexiv2.so'))
sys.path.append(os.path.join(lib_dir, 'py{}-linux'.format(py_version)))
sys.path.append(os.path.join(lib_dir, 'py{}-linux'.format(py_version.replace('.',''))))
import exiv2api
elif sys_name == 'Darwin':
ctypes.CDLL(os.path.join(lib_dir, 'libexiv2.dylib'))
sys.path.append(os.path.join(lib_dir, 'py{}-darwin'.format(py_version)))
sys.path.append(os.path.join(lib_dir, 'py{}-darwin'.format(py_version.replace('.',''))))
import exiv2api
elif sys_name == 'Windows':
ctypes.CDLL(os.path.join(lib_dir, 'exiv2.dll'))
sys.path.append(os.path.join(lib_dir, 'py{}-win'.format(py_version)))
sys.path.append(os.path.join(lib_dir, 'py{}-win'.format(py_version.replace('.',''))))
import exiv2api
else:
raise RuntimeError('pyexiv2 can only run on Linux, Darwin or Windows system. But your system is {} .'.format(sys_name))
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.

0 comments on commit 97731ed

Please sign in to comment.