Skip to content

Commit 6a28f40

Browse files
committed
upgrade to 1.0rc3
proper .pth deploy using relative site-packages path
1 parent 0494274 commit 6a28f40

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
recursive-include django_cemplate *
22
global-exclude *.py*
33
include *.py
4+
include *.pth
45
include django_cemplate/__init__.py

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from distutils.extension import Extension
88

99
from distutils import sysconfig
10-
site_packages_path = sysconfig.get_python_lib()
10+
11+
site_packages_path = sysconfig.get_python_lib(plat_specific=True)
12+
site_packages_rel_path = site_packages_path[len(sysconfig.EXEC_PREFIX) + 1:]
1113

1214
USE_CYTHON = False
1315
extensions = []
@@ -30,14 +32,14 @@
3032
name="django_cemplate",
3133
author="Alex DAMIAN",
3234
author_email="[email protected]",
33-
version="1.00.rc1",
35+
version="1.00.rc3",
3436
license="GPL",
3537
url="https://github.com/ddalex/django-cemplate",
3638
download_url="https://github.com/ddalex/django-cemplate/releases",
3739
description="Cython-compiles django.template.[base,context,context_processors].py files for speed improvements.",
3840
packages=["django_cemplate"],
3941
ext_modules=extensions,
4042
install_requires=['django==1.8.7'],
41-
data_files=[(site_packages_path, ["django_cemplate.pth"])],
43+
data_files=[(site_packages_rel_path, ["django_cemplate.pth"])],
4244
scripts="",
4345
)

0 commit comments

Comments
 (0)